Inverted pyramid of numbers in C programming-Pattern 9
In this program, we will see the inverted pyramid of numbers in C programming language. Please look into the program.
12345 2345 345 45 5
The C program for the Inverted pyramid 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=1;i<=no_rows;i++) { for(j=i;j<=no_rows;j++) { printf("%d",j); } printf("n"); } getch(); return 0; }