Pattern Printing:Star and Half pyramid in C

Output

 

Code:

 

Output:

References:

http://www.codeforwin.in/2015/07/star-patterns-program-in-c.html

http://www.tutorial4us.com/cpp-program/cpp-program-print-triangle-of-stars

http://www.programmingsimplified.com/c-program-print-stars-pyramid