RosettaCodeData/Task/Loops-Break/PureBasic/loops-break.basic

18 lines
247 B
Plaintext

If OpenConsole()
Repeat
a = Random(19)
PrintN(Str(a))
If a = 10
Break
EndIf
b = Random(19)
PrintN(Str(b))
PrintN("")
ForEver
Print(#CRLF$ + #CRLF$ + "Press ENTER to exit")
Input()
CloseConsole()
EndIf