Loops/Break: Difference between revisions
Content added Content deleted
imported>Brie (Add Nu) |
|||
Line 2,654: | Line 2,654: | ||
40 PRINT RND(20) |
40 PRINT RND(20) |
||
50 GOTO 10</syntaxhighlight> |
50 GOTO 10</syntaxhighlight> |
||
=={{header|Nu}}== |
|||
<syntaxhighlight lang="nu"> |
|||
while true { |
|||
let a = random int 0..19 |
|||
print $a |
|||
if $a == 10 {break} |
|||
print (random int 0..19) |
|||
} |
|||
</syntaxhighlight> |
|||
=={{header|Oberon-2}}== |
=={{header|Oberon-2}}== |