Pattern 37: Number pattern program in C using for loops

Spread the love

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:

Triangle-Pattern-program-in-c-language

Similar Number Patterns:

Similar Star pattern programs :

Venkat

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...

1 Response

  1. 11213141 says:

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

Leave a Reply