CodeLab Academy 📞 9936 6696
← List Scratch · Level 2: Variables Quiz · 10 points ← #103 #105 →

#104. Swapping

When the green flag is clicked, this script runs. What is the value of the **a** variable at the end?
when green flag clicked
set [a v] to (18)
set [b v] to (16)
set [c v] to (a)
set [a v] to (b)
set [b v] to (c)

💡 Not sure? Build it in Scratch and try it out.

🔒 You can solve the first 3 problems without an account. Sign up for free to solve this one!