Рубин, пока петля
while [condition]
do something
end
weegee
while [condition]
do something
end
num = 0
while num < 2 do
print("num = ", num)
end
print("End")