RosettaCodeData/Task/Loops-Break/PascalABC.NET/loops-break.pas

11 lines
140 B
ObjectPascal
Raw Permalink Normal View History

2024-07-13 15:19:22 -07:00
begin
while True do
begin
var x := Random(0,19);
Print(x);
if x = 10 then
break;
Print(Random(0,19));
end;
end.