RosettaCodeData/Task/Loops-Break/Phix/loops-break.phix

8 lines
141 B
Text
Raw Permalink Normal View History

2016-12-05 23:44:36 +01:00
integer i
while 1 do
i = rand(20)-1
printf(1, "%g ", {i})
if i=10 then exit end if
printf(1, "%g\n", {rand(20)-1})
end while