Question: The user will enter a number (>= 1) into n then your program will show 1 star on the first line, 2 stars on
The user will enter a number (>= 1) into n then your program will show 1 star on the first line, 2 stars on the second line, . n stars on the nth line as shown below. If the user enters a negative number or zero, ***** show an error message and the program ends.
Step by Step Solution
3.48 Rating (158 Votes )
There are 3 Steps involved in it
Here am going to write a program to get the n value from ... View full answer
Get step-by-step solutions from verified subject matter experts
