Computer Science, asked by ahemed456, 1 year ago

Write a program to accept an integer and reverse the number

Answers

Answered by karanjotgaidu
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