Write a program to accept an integer and reverse the number
Answers
Answered by
1
Answer:
#python program to reverse an integer
N=int(input("Enter the number"))
R=0
while N>0:
D=N%10
R=R*10+D
N=N//10
print("REVERSE OF THE NUMBER:", R)
Similar questions
Physics,
6 months ago
Hindi,
6 months ago
Math,
6 months ago
Social Sciences,
1 year ago
Math,
1 year ago