write a python program to reverse a number
Answers
Answered by
8
Answer:
Hope it helps.... Please Mark As Brainliest
Explanation:
Reverse Number In Python
# Python Program to Reverse a Number using While loop.
Number = int(input("Please Enter any Number: "))
Reverse = 0.
while(Number > 0):
Reminder = Number %10.
Reverse = (Reverse *10) + Reminder.
Number = Number //10.
print("\n Reverse of entered number is = %d" %Reverse)
Answered by
1
# Python Program to Reverse a Number using While loop.
Number = int(input("Please Enter any Number: "))
Reverse = 0.
while(Number > 0):
Reminder = Number %10.
Reverse = (Reverse *10) + Reminder.
Number = Number //10.
print("\n Reverse of entered number is = %d" %Reverse)
Similar questions