Answer to Question #292690 in Python for Siri

Question #292690

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)

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS