CodeLab Academy 📞 9936 6696
← List Scratch · Level 8: Loops + conditions Quiz · 40 points ← #754 #756 →

#755. Thermostat

When the green flag is clicked, this script runs. What is the value of the **temp** variable?
when green flag clicked
set [temp v] to (14)
repeat (10)
if <(temp) > (23)> then
change [temp v] by (-5)
else
change [temp v] by (3)
end
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!