RosettaCodeData/Task/Loops-Break/Smalltalk/loops-break-3.st
2023-07-01 13:44:08 -04:00

7 lines
203 B
Smalltalk

[:exit |
|first|
Stdout printCR: (first := Random nextIntegerBetween:0 and:19).
first == 10 ifTrue:exit.
Stdout print:' '; printCR: (Random nextIntegerBetween:0 and:19).
] loopWithExit.