A good answer might be:In this case, the braces are not really needed, but are probably a good idea, for clarity:
| |
Complete Add Up Numbers ProgramHere is the complete program that adds up user-entered integers. In now includes nested ifs that select the proper ending for the numbers in the prompt:
| |
QUESTION 13:The main topic of this chapter is sentinel-controlled loops. Is a sentinel always going to be an integer? Click Here after you have answered the question |