Problem

If necessary, create a new project named Introductory17 Project and save it in the Cpp7\...

If necessary, create a new project named Introductory17 Project and save it in the Cpp7\Chap09 folder. Enter the C++ instructions shown earlier in Figure 9-23 into a source file named Introductory17.cpp. Change the filename in the first comment. Save and then run the program. Modify the main function so that it swaps the numbers if the smallest number is greater than the largest number. Also modify the program so that it performs subtraction rather than addition. However, the program should always subtract the smaller number from the larger one. Save and then run the program.

REFERENCE: Figure 9-23

Step-by-Step Solution

Request Professional Solution

Request Solution!

We need at least 10 more requests to produce the solution.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search