num = int(input("enter the number: "))
print("the reversed number is :",)
while(num!=0):
   temp = num%10
   print(temp, end=" ")
   num = int(num/10)

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: