Inverted Right Triangle Star Pattern
Here you will learn to print a Inverted Right Triangle Star Pattern in C programming language.
Program Code of Inverted Right Triangle Star Pattern
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | #include <stdio.h> int main() { int i,j,num; printf("Enter the number of rows: "); scanf("%d",&num); for(int i = num; i >= 1; i--) { for(int j = 1; j <= i; j++) { printf("* "); } printf("\n"); } return 0; } |
Output