Question: You are required to write an interactive C++ program that prompts the user for two integers X and Y and performs the following tasks: Adds

You are required to write an interactive C++ program that prompts the user for two integers X and Y and performs the following tasks:

  1. Adds two numbers.
  2. Subtracts Y from X.
  3. Multiplies X and Y.
  4. Divides X by Y.
  5. Finds which numbers is larger (X or Y)
  6. Prints all the results (a, b, c, d, and e)

Program requirements:

- The program should run as many times as the users wish (hint: use a while loop).

- Test your program for different values using different set of data that the users provide.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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!