pattern 33: C Program to print the below number pattern using the for loops
Decreasing Number pattern:
Write a C Program to print below Decreasing number pattern on the console.
Example 1:
Enter how many rows you want : 5
5
5 4
5 4 3
5 4 3 2
5 4 3 2 1
Example 2:
Enter how many rows you want : 10
10
10 9
10 9 8
10 9 8 7
10 9 8 7 6
10 9 8 7 6 5
10 9 8 7 6 5 4
10 9 8 7 6 5 4 3
10 9 8 7 6 5 4 3 2
10 9 8 7 6 5 4 3 2 1
Also Check:
- 📢 This program is one of the Series of Number pattern programs in C.
Program to print Decreasing Number 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,n; printf("Enter how many rows you want : "); scanf("%d",&n); for(i=n;i>0;i--) { for(j=n;j>=i;j--) printf(" %d",j); printf("\n"); } return 0; } |
Program Output:
Similar Number Patterns:
- Basic Number Pattern program.
- Triangle Number pattern using for loops.
- Number Pattern 3.
- C Program to print below pattern
- 5 4 3 2 1
5 4 3 2
5 4 3
5 4
5 - C Program to print below pattern.
- 1
2 3
4 5 6
7 8 9 10 - C Program to print Below Pattern,
- 5
4 5
3 4 5
2 3 4 5
1 2 3 4 5 - C Program to print below pattern.
- 1
2 1
3 2 1
4 3 2 1
5 4 3 2 1
Similar Star pattern programs :
- Basic star pattern program (The square pattern with stars).
- Triangle star pattern program.
- Triangle star pattern program with Spaces.
- Pyramid star pattern.
- Reverse Pyramid program.
- Diamond Star pattern program.
- star pattern program.
- K-Star pattern program.
- Empty Rhombus program.
- X-Star pattern program
- More Star Patterns