HomeProgrammingC ProgrammingPrint Half pyramid using star (*) in C programming

Print Half pyramid using star (*) in C programming

 Question: 

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

 Output Sample:   

InputOutput
3
3




4





5
*
* *
* * *

*
* *
* * *
* * * *

*
* *
* * *
* * * *
* * * * *

 Source Code: 

 List of C Exercises: 

RELATED ARTICLES

LATEST ARTICLES