Question: 3. (10 points) Write a program that prompts the user to enter a 2-digit integer number and prints out the reverse of the number.

3. (10 points) Write a program that prompts the user to enter  

3. (10 points) Write a program that prompts the user to enter a 2-digit integer number and prints out the reverse of the number. For example: Enter a 2-digit integer 45 Reverse = 54 Now, you are in COMP 182, so you need to practice validating if the user input is what is as expected (ex. You should not accept strings, and keep asking the user for a valid value).

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 Programming Questions!