Create a program asks the user to enter a number


Discussion:

Q: Create a program that asks the user to enter a number from 1 to 50.

Print the statement "Programming is fun" the number of times entered by the user using a for loop.

Print the statement "Spring break is fun" the same number of times using a while loop.

 

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: Create a program asks the user to enter a number
Reference No:- TGS01935985

Now Priced at $20 (50% Discount)

Recommended (93%)

Rated (4.5/5)