Write a program that takes a number and print its reverse. Example: n=465, its reverse is 564
Answers
Answered by
0
Answer:
Reverse an Integer. This program takes an integer input from the user. Then the while loop is used until n != 0 is false (0). In each iteration of the loop, the remainder when n is divided by 10 is calculated and the value of n is reduced by 10 times.
Explanation:
hope it helps you .....
Similar questions