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