C Program to Print Right angled Pyramid using Nested Loops

Program : Print this Right angled Pyramid in C using Nested Loops

Live Example : Program

Explanation of Above Code :

Accept the total number of lines to be printed.

Now we are using nested loop to print the pyramid. First for loop is used to print the star on the line. Second loop will be used to identify the total number of stars to be printed on the screen.