CodeType
Learn
…
←
Fundamentals
15 / 16
Up next
while
n =
1
# double until it passes 100
while
n <=
100
n *=
2
end
puts n
What you're solving
repeat until a condition fails
Explain more ↓
Start typing →