RosettaCodeData/Task/Loops-Break/ALGOL-68/loops-break.alg
2023-07-01 13:44:08 -04:00

13 lines
354 B
Text

main: (
INT a, b;
INT seed := 4; # chosen by a fair dice roll, guaranteed to be random c.f. http://xkcd.com/221/ #
# first random; #
WHILE
a := ENTIER (next random(seed) * 20);
print((a));
# WHILE # NOT (a = 10) DO
b := ENTIER (next random(seed) * 20);
print((b, new line))
OD;
print(new line)
)