Integer14. A three-digit number is given. In it, crossed the first digit on the right and attached it to the left. Print the resulting number.

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 + d2*10 + d1)