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)
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)
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us