Print half pyramid using numbers in C programming

0
5
programming solution

 Question: 

Write a program that prompts the user to enter a int value and display the half pyramid using numbers like output sample.

 Output Sample:   

InputOutput
3
2


3



5
1
1 2

1
1 2
1 2 3

1
1 2
1 2 3
1 2 3 4
1 2 3 4 5

 Source Code: 

 List of C Exercises: 

LEAVE A REPLY

Please enter your comment!
Please enter your name here