Number Pattern 12-Inverted pyramid pattern of numbers in C programming
In this program, we will see the inverted pyramid pattern or triangle of numbers in C programming language. Please look into the program.
55555 4444 333 22 1
The C program for Inverted pyramid pattern of numbers is as follows:
#include <stdio.h> int main() { int i, j, no_rows; printf("Enter number of rows - "); scanf("%d",&no_rows); for(i=no_rows;i>=1;i--) { for(j=1;j<=i;j++) { printf("%d",i); } printf("n"); } getch(); return 0; }