Write down the algorithm for cyclic exchange of values of three variables a, b, c. Cyclic exchange scheme

Write down the algorithm for cyclic exchange of values of three variables a, b, c. Cyclic exchange scheme: a arrow b arrow c and another arrow c goes to a. For example, if before the exchange it was: a = 1, b = 2, c = 3, then after the exchange it should become: a = 3, b = 1, c = 2. Run tracing.

Let’s write this program in Pascal:
Course of action:
1) a = 1, b = 2, c = 3
2) a = 3, b = 1, c = 2
Trace is done like this:
b: = a;
a: = c;
c: = b;



One of the components of a person's success in our time is receiving modern high-quality education, mastering the knowledge, skills and abilities necessary for life in society. A person today needs to study almost all his life, mastering everything new and new, acquiring the necessary professional qualities.