Pattern programs in C
Pattern programs in C language, showing how to create various patterns of numbers and stars. The programs require nested loops (a loop inside another loop). A design of numerals, stars, or characters is a way of arranging these in some logical manner, or they may form a sequence. Some of these are triangles that have particular importance in mathematics. Some patterns are symmetrical, while others are not. See the complete page for all of them.
*
***
*****
*******
*********
outputs:
Enter the number of rows in pyramid of stars to print
5
*
***
*****
*******
*********
need an explanation for this answer? contact us directly to get an explanation for this answer