num = int(input("enter the number: ")) print("the reversed number is :",) while(num!=0): temp = num%10 print(temp, end=" ") num = int(num/10)
To embed this project on your website, copy the following code and paste it into your website's HTML: