Question: Write a program in C + + that will prompt user to enter two different integers to two different integer variables declared as first _

Write a program in C++ that will prompt user to enter two different integers to two different integer variables declared as first_number and second_number
After reading the two values, print out value of each variable.
Then swap the value of each variable and then print them again. You must print their values exactly as you had done above.
A sample output could be like this:
Enter first number : 7
Enter second number : 22
First # is 7 and Second # is 22
After swapping: First # is 22 and Second # is 7

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 Databases Questions!