langs a-z
This commit is contained in:
parent
db842d013d
commit
d066446780
11389 changed files with 98361 additions and 1020 deletions
18
Task/Loops-Break/REBOL/loops-break.rebol
Normal file
18
Task/Loops-Break/REBOL/loops-break.rebol
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
REBOL [
|
||||
Title: "Loop/Break"
|
||||
Author: oofoe
|
||||
Date: 2009-12-19
|
||||
URL: http://rosettacode.org/wiki/Loop/Break
|
||||
]
|
||||
|
||||
random/seed 1 ; Make repeatable.
|
||||
; random/seed now ; Uncomment for 'true' randomness.
|
||||
|
||||
r20: does [(random 20) - 1]
|
||||
|
||||
forever [
|
||||
prin x: r20
|
||||
if 10 = x [break]
|
||||
print rejoin [" " r20]
|
||||
]
|
||||
print ""
|
||||
Loading…
Add table
Add a link
Reference in a new issue