Practice ยท 1 of 3
Swap Two Variables
a is 1 and b is 2. Swap their values using a third variable, then print them as: a=2 then b=1 (two prints).
Difficulty: beginner
Press Submit to check your solution.
Back to lesson: Practice: Variable Drills
Practice ยท 1 of 3
a is 1 and b is 2. Swap their values using a third variable, then print them as: a=2 then b=1 (two prints).
Difficulty: beginner
Back to lesson: Practice: Variable Drills