Menu

(Solved) : Exercise 1 Change Number Write Program Reads Five Digits Integer Swaps Unit Position Digit Q29854688 . . .

Exercise#1: Change the Number Write a program that reads a five digits integer, then swaps the unit position digit with the ten thousandth position digit, also swap the tenth position digit with the thousandth position digit. Print the new number. For example if the number is 37846 then the new number is 64873. Sample input/output: Enter a five digits integer: 37695 The new form of the number 37695 is 59673please write the code in C++ programExercise#1: Change the Number Write a program that reads a five digits integer, then swaps the unit position digit with the ten thousandth position digit, also swap the tenth position digit with the thousandth position digit. Print the new number. For example if the number is 37846 then the new number is 64873. Sample input/output: Enter a five digits integer: 37695 The new form of the number 37695 is 59673 Show transcribed image text

Expert Answer


Answer to Exercise 1 Change Number Write Program Reads Five Digits Integer Swaps Unit Position Digit Q29854688 . . .

OR