Question: java 1. Write an application that input one number consisting of two digits from the user, separate the number into its individual digits and swap

java 1. Write an application that input one number consisting of two digits from the user, separate the number into its individual digits and swap them. For example, if the user types in the number 42, the program should print 24. Assume that the user enters the correct number of digits. You then need to add a value of 2 to the 1st digit and 4 to the 2nd digit.

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!