nitlanguage
/
nit.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
app.nit: add default behavior to `TextAsset::load` for unit tests
[nit.git]
/
examples
/
rosettacode
/
loops_for.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/For
7
#
8
# SEE: http://rosettacode.org/wiki/Loops/For
9
module
loops_for
10
11
for
i
in
[
1
.
.5
]
do
12
for
j
in
[
1
..
i
]
do
printn
"*"
13
print
""
14
end