Anonymous user
Loops/Break: Difference between revisions
Updated to work with version 1.4 of Nim: changed module "math" to "random", changed "random" function to "rand", changed 20 to 19.
(Added Quackery.) |
(Updated to work with version 1.4 of Nim: changed module "math" to "random", changed "random" function to "rand", changed 20 to 19.) |
||
Line 2,302:
=={{header|Nim}}==
{{trans|Python}}
<lang nim>import
while true:
let a = random(
echo a
if a == 10:
break
let b = random(
echo b</lang>
|