Question: C++ Question.3: Swapping Digits Write a program that reads a five digits integer, then swaps the unit position digit with the ten thousandth position digit,

 C++ Question.3: Swapping Digits Write a program that reads a five C++

Question.3: Swapping Digits 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: 37846 he new forn of the nunber 37846 is 64873

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!