|
(Mentally) combine the program fragment and the program so that the user enters N. A good answer might be:The fragment is used in front of the loop to get N, as seen below. | |
Potential ProblemIt does not hurt, logically, to initialize N to 3.00 in the declaration. But it might confuse a reader of the program, so it is best to not initialize N.
The program as given is largely correct, but there is a big potential problem that should be fixed. | |
QUESTION 17:What would happen if the the user entered a negative number? Click Here after you have answered the question |