Begin23. The variables \(A, B, C\) are given. Change their values by moving the contents of \(A\) to \(B\), \(B\) - to \(C\), \(C\) - to \(A\), and output new values of variables \(A, B, C\).

Solution in Python 3:

import random

A,B,C = sorted(random.sample(range(-10, 10), 3))
print("A = {0}, B = {1}, C = {2}".format(A,B,C))

A,B = B,A
A,C = C,A
print("A = {0}, B = {1}, C = {2}".format(A,B,C))