Print Half pyramid using star (*) in C programming

0
7
programming solution

 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: 

LEAVE A REPLY

Please enter your comment!
Please enter your name here