#255. Add and subtract
When the green flag is clicked, this script runs. What is the value of the **score** variable?
when green flag clicked set [score v] to (8) repeat (3) change [score v] by (7) change [score v] by (-4) end
# When the green flag is clicked
score = 8
for _ in range(3):
score += 7
score -= 4
let score = 0;
// When the green flag is clicked
score = 8;
for (let i = 0; i < 3; i++) {
score += 7;
score -= 4;
}
💡 Not sure? Build it in Scratch and try it out.