RosettaCodeData/Task/Loops-Break/Lua/loops-break.lua

7 lines
104 B
Lua
Raw Permalink Normal View History

2013-04-10 21:29:02 -07:00
repeat
k = math.random(19)
print(k)
if k == 10 then break end
print(math.random(19)
until false