Surely you've been covering loop constructs in class. Now your teacher wants you to use what you've been taught. Clue: for loops are very handy.
We won't do your homework for you, but post a reasonable attempt and explain what doesn't work and then we'll try to fix it up. ;)
Infarction
Posting Virtuoso
1,580 posts since May 2006
Reputation Points: 683
Solved Threads: 53