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

1 Expert Approved Answer
Step: 1 Unlock

Certainly Lets write a C program that meets the requirements outlined in your question Well use a wh... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!