Computer Science, asked by sayujsudhir, 6 months ago

Write a python program to print the numbers in reverse order.​

Answers

Answered by diyaannasunil
2

Answer:

Python Program

try: n = int(input('Enter a number : ')) reversed = 0 while(n!= 0): r=int(n%10) reversed = reversed*10 + r n=int(n/10) print(reversed) except ValueError: print('Given input is not a number. ')

Hope it helps you!!!

Similar questions