CodeLab Academy 📞 9936 6696
← List Scratch · Level 5: Repeat until Quiz · 25 points ← #452 #454 →

#453. Growing sum

When the green flag is clicked, this script runs. When the loop ends, what is the value of the **i** variable?
when green flag clicked
set [s v] to (0)
set [i v] to (0)
repeat until <(s) > (19)>
change [i v] by (1)
change [s v] by (i)
end

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