Module: (C++) Arithmetic expressions


Problem

6/7

Exchange Variables

Problem

For a given two variables. It is necessary to exchange the values of these variables: in the variable a, what was previously stored in b should be written, and in the variable b, what was previously stored in a should be written. Then these variables are deduced, first the variable a, then b.

Complete the program with the necessary operators.
 
Example
N Input Output
1 3 4 4 3