4.8. Exercises
- 1. If the program in Figure 4.19 is run, what will be displayed?
- 2. If the program in Figure 4.20 is run, what will be displayed?
- 3. Write a program that asks the user to type in a weight, and display the weight on the screen.
- 4. Modify the program from exercise 3 to ask the user to type as many weights as desired, stopping as soon as a 0 is entered. Add up all of the weights entered and display the total on the screen at the end of the program.
|
www.steveheller.com steve@steveheller.com |