nitlanguage
/
nit.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
tests: Add contract test with static
[nit.git]
/
examples
/
rosettacode
/
loops_break.nit
1
#!/usr/bin/env nit
2
#
3
# This file is part of NIT ( http://www.nitlanguage.org ).
4
# This program is public domain
5
6
# Task: Loops/Break
7
#
8
# SEE: http://rosettacode.org/wiki/Loops/Break
9
module
loops_break
10
11
loop
12
var
a
=
20
.
rand
13
print a
14
if
a
==
10
then break
15
print
20
.
rand
16
end