A good answer might be:The complete program can use nearly the same code for the next two numbers as for the first number. | |
Complete ProgramHere is the complete program. The differences in the code for each of the three numbers is highlighted in color. Noticing similarites like this between sections of code will often lead to better programs.
| |
QUESTION 7:There are 4 if statements in this program. Are these if statements nested? (That is: is any if statement part of the true branch or the false branch of another?) Click Here after you have answered the question |