Question: Part II Variables and Assignment 2. 5 Marks] Digits: Write a program that reads a four-digit number, exchange the unit and the hundred digits, exchange
![Part II Variables and Assignment 2. 5 Marks] Digits: Write a](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f0f7758cc16_02166f0f77506235.jpg)
Part II Variables and Assignment 2. 5 Marks] Digits: Write a program that reads a four-digit number, exchange the unit and the hundred digits, exchange the ten and the thousand digits, and then prints the new number. Sample input/output: nter a number: 2750 e one number is: 5027
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
