Pattern 37: Number pattern program in C using for loops

Triangle Pattern in C Language:

Program to print below Triangle Pattern in C on the console using the loops.

Here are couple of example outputs

Example 1:

Enter how many rows you want : 5
 1 1 1 1 1
 2 2 2 2
 3 3 3
 4 4
 5

Example 2:

Enter how many rows you want : 10
1 1 1 1 1 1 1 1 1 1
2 2 2 2 2 2 2 2 2
3 3 3 3 3 3 3 3
4 4 4 4 4 4 4
5 5 5 5 5 5
6 6 6 6 6
7 7 7 7
8 8 8
9 9
10

📢 Collection of Pattern Program:

Triangle Pattern in C Program:

Program Output:

Similar Number Patterns:

Similar Star pattern programs :

Venkatesh

Hi Guys, I am Venkatesh. I am a programmer and an Open Source enthusiast. I write about programming and technology on this blog.

You may also like...

2 Responses

  1. asdsadsd says:

    111111 11111
    2222 2222
    333 333
    44 44
    5 5

  2. 11213141 says:

    I want the program
    11111111
    0000000
    *********
    11111111
    000000

Leave a Reply