Lesson 20 For Loops
Do this for your assignment: Make a program that will prompt the use for a number from 0 to 60 and print out a row of that many Xs.
If the entered number is 0 the program exits.
Sample run:
Rows of Xs!
How many Xs do you want? 8
XXXXXXXX
How many Xs do you want? 13
XXXXXXXXXXXXX
How many Xs do you want? 0
We're done!
This project uses both "for loop" and your recently acquired "do while" skills.
Hint: First write and test a for loop that prints out a row of n Xs.
@Roger @Rodney @Shelton