CodeLab Academy 📞 9936 6696
← List Scratch · Level 9: My blocks and messages Quiz · 45 points ← #863 #865 →

#864. My own block: add up

When the green flag is clicked, the script on the left runs. What is the value of the **total** variable at the end?
define add up (a) (b)
change [total v] by ((a) + (b))

when green flag clicked
set [total v] to (0)
add up (17) (7)
add up (12) (19)
add up (20) (19)

💡 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!