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