To print 3 digit number and peint the digit of the number in reverse order
1
Expert's answer
2022-02-01T06:23:09-0500
x = int(input("Enter a three number: "))
d1 = x % 10
x //= 10
d2 = x % 10
x //= 10
d3 = x % 10
y = d1 * 100 + d2 * 10 + d3
print(" Your Reversed Number:", y)
Comments
Leave a comment