Fundamentals8 / 12
Up next

while loop

n <- 1
# while repeats until the condition is FALSE
while (n < 100) {
  n <- n * 2
}
print(n)
What you're solving

repeat until the condition is FALSE