Unformatted text preview: Assignment 19 For loops Write a program that asks the user for a number between 1 and 10, then prints a line of that many “X”s as shown below. Reject any entries outside of the range of 1 to 10 by displaying “Entry is out of range.” You must use a FOR LOOP for this problem. The variable used to store the number of Xs must be called “numExs”. ...
View Full Document
This note was uploaded on 01/11/2010 for the course CMPSC 101 taught by Professor Drobish,renee during the Summer '07 term at Penn State.
- Summer '07