Search your course

 

How To Reverse Integer In Python


 

Lets see how to create a python program to reverse integer. Code is given below

num = int(input("Enter any Number: "))
Reverse = 0
while(num > 0):
    Reminder = num %10
    Reverse = (Reverse *10) + Reminder
    num = num //10

print("Reverse of entered number is: %d" %Reverse)

 

Subscribe to my youtube channel