A Refresher

Just a short program to refresh your memory about how to program. Write a program that prompts the user for a name. Then display that name ten times. You must use a loop. If the name given is "Mitchell", display it only five times.

What is your name: gump

gump
gump
gump
gump
gump
gump
gump
gump
gump
gump

 

What is your name: Mitchell

Mitchell
Mitchell
Mitchell
Mitchell
Mitchell



©2013 Graham Mitchell

This assignment is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 United States License.
Creative Commons License