Integer12. A three-digit number is given. Print the number obtained by reading the original number from right to left.

Solution in Python 3:

import random

N = random.randrange(100,1000)
print("Number: ", N)
d2 = int(N/100)
d1 = int((N-d2*100)/10)
d0 = N%10
print("Hundreds: ", d2)
print("Tens: ", d1)
print("Units: ", d0)
print("Another number: ", d0*100 + d1*10 + d2)