Coding Challenge: Variable Swapping

Learn how to swap values of the variables.

We'll cover the following

Problem statement

Observe the following program and add the necessary code to swap the values of variables number1 and number2.

This exercise has several valid solutions. You may use more than two variables to solve it.

Coding exercise

Get hands-on with 1200+ tech skills courses.