| Writing Loops Worksheet #1 | Name - |
| Day of Week - |
1. Write a program that allows the user to input integer values until the resulting total of the inputted values is greater than 100. Prompt the user to input integer values between 1 and 10. The program should display the final total of the inputted values.
2. Write a for loop that successively adds 4 to the variable sum exactly 5 times and displays each sum on a new line. The integer variable sum should be initialized to 0. The values 4, 8, 12, 16, and 20 should be displayed as output.
3. Write a for loop that displays the phrase "hello world" exactly 10 times. Use a loop variable named i to control the loop.