This document contains a C program that prompts the user to enter a number of rows and then prints a right-aligned triangle of asterisks based on that number. The program uses nested loops to manage the spacing and the printing of asterisks. It includes basic input and output functions from the standard library.
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)
6 views1 page
HW 2
This document contains a C program that prompts the user to enter a number of rows and then prints a right-aligned triangle of asterisks based on that number. The program uses nested loops to manage the spacing and the printing of asterisks. It includes basic input and output functions from the standard library.