Question: Write a program that takes 2 integers as inputs and swaps them in outputs. At first, save the integers in 2 different variables. Within the

 Write a program that takes 2 integers as inputs and swaps

Write a program that takes 2 integers as inputs and swaps them in outputs. At first, save the integers in 2 different variables. Within the code, swap their values. Finally, print the integers on screen. Sample Input: (Your code should print the red texts on the screen. Black texts are sample user inputs) Number-1: 24 Number-2: 67 Sample Output: Number-1 is 67 Number-2 is 24

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!