Full pyramid with numbers in C programming
Contents
hide
In this program, we will see the Full pyramid with numbers in C programming language.
1 123 12345 1234567 123456789
The C program for above Full pyramid using numbers is as follows:
#include<stdio.h> int main() { int a,b,c,d=1; for(a=1; a<=5; a++) { for(b=4; b>=a; b--) { printf(" "); } for(c=1; c<=d; c++) { printf("%d",c); } d = d+2; printf("n"); } getch(); return 0; }