Post Page Advertisement [Top]

python program

write a program in python to display reverse of a number

code:

x=int(input("Enter Number"))
rev=0
while x!=0:
     rev=rev*10+x%10
     x//=10
print(rev)



Thank-you

No comments:

Post a Comment

Bottom Ad [Post Page]