Question: Part II Variables and Assignment 2. 15 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. 15 Marks Digits: Write a

Part II Variables and Assignment 2. 15 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

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!