#465. 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) > (57)> change [x v] by (9) end
# When the green flag is clicked
x = 0
while not (x > 57):
x += 9
let x = 0;
// When the green flag is clicked
x = 0;
while (!(x > 57)) {
x += 9;
}
💡 Not sure? Build it in Scratch and try it out.