#492. Repeat until
When the green flag is clicked, this script runs. When the loop ends, what is the value of the **x** variable?
when green flag clicked set [x v] to (0) repeat until <(x) > (34)> change [x v] by (10) end
# When the green flag is clicked
x = 0
while not (x > 34):
x += 10
let x = 0;
// When the green flag is clicked
x = 0;
while (!(x > 34)) {
x += 10;
}
💡 Not sure? Build it in Scratch and try it out.