Python Program to Reverse a Number
In this program we will print the reverse of a given number.
#Reverse a number
a=int(input("Enter an integer: "))
while(a is not 0):
rem = a%10
reverse = reverse*10 + rem
a //= 10
print("Reverse of the number is: ", reverse)
Codesadda.com is your home of programming solutions, tutorials, video tutorials and much more.
Sign Up for our weekly newsletter to get update about new content.