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

Access this course and 1400+ top-rated courses and projects.