Merge: doc: fixed some typos and other misc. corrections
[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