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

7 lines
104 B
Lua
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
repeat
k = math.random(19)
print(k)
if k == 10 then break end
print(math.random(19)
until false