This C program asks the user to input a number of rows. It then prints out a triangle pattern of asterisks using nested for loops, with each row containing one more asterisk than the previous row, up to the number entered by the user. The program returns 0 upon completion.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
78 views1 page
#Include Int Main (Int I, J, Rows
This C program asks the user to input a number of rows. It then prints out a triangle pattern of asterisks using nested for loops, with each row containing one more asterisk than the previous row, up to the number entered by the user. The program returns 0 upon completion.