Number Pattern 33-Pyramid pattern in C programming
Contents
hide
In this program, we will see the Pyramid pattern numbers in C programming language. Please look into the program.
1 23 345 4567 56789
The C program for Pyramid pattern is as follows:
#include<stdio.h> int main() { int i,j,k; for(i=1;i<=5;i++) { j=i; for(k=1;k<=i;k++) { printf("%d",j++); } printf("n"); } getch(); return 0; }