Write a program, C++, that takes two integer numbers and prints their sum. Do this until the
Fantastic news! We've Found the answer you've been seeking!
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). 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 |
Related Book For
Posted Date: