Answer:
The solution code is written in Python:
- i = 2
- j = 3
- itemp = i
- jtemp = j
- i = jtemp
- j = itemp
Step-by-step explanation:
Given the i and j hold their respective values (e.g. 2 and 3) (Line 1-2). We can create another two more variables itemp and jtemp to hold the values of i and j (Line 3- 4). Next, we assign jtemp to i and itemp to j. This will enable the previous value of j assigned to i and previous value of i assigned to j (Line 5-6).