Question: Write a program, C++, that takes two integer numbers and prints their sum. Do this until the user enters 0 (but print the last sum).
Write a program, C++, that takes two integer numbers and prints their sum. Do this until the user enters 0 (but print the last sum). Additionally, if the user inputs 99 as the first number and 0 as the second number, just print "Finish."and, of course, end the program. Of course use the while loop. Your version of the program must print the same result as the expected output
EXAMPLE:
| Input | Output | Input | Output |
| 1 | sum:2 | 1 | sum:6 |
| 1 | sum:2 | 5 | sum:99 |
| 2 | | 99 | Finish. |
| 0 | | 0 |
Step by Step Solution
3.41 Rating (145 Votes )
There are 3 Steps involved in it
Certainly Lets write a C program that meets the requirements outlined in your question Well use a wh... View full answer
Get step-by-step solutions from verified subject matter experts
