Answers for "Write a code to extract each digit from an integer, in the reverse order"

1

Write a code to extract each digit from an integer, in the reverse order

x = int(input('Enter a number : '))
y = int(str(x)[::-1])
print("The reversed number is:" ,y)
Posted by: Guest on June-03-2021

Code answers related to "Write a code to extract each digit from an integer, in the reverse order"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language