2) Write a program while_you which displays "Loops are awesome" then waits for the user to strike a key. If the 'q', 'Q', 'w', or 'W' key is entered, repeat the display, "Loops are awesome". You must use a while loop.
3) Write a program named for_me which displays "Loops are awesome" 100 times. You must use a while or do-while loop.
4) Write a program while_me which displays "Loops are awesome" then waits for the user to strike a key. If the 'q', 'Q', 'w', or 'W' key is entered, repeat the display, "Loops are awesome". You must use a do-while loop.
These programs are due at the end of class tomorrow.
.
No comments:
Post a Comment