Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
12
Task/Repeat/Ursa/repeat.ursa
Normal file
12
Task/Repeat/Ursa/repeat.ursa
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
def repeat (function f, int n)
|
||||
for (set n n) (> n 0) (dec n)
|
||||
f
|
||||
end for
|
||||
end repeat
|
||||
|
||||
def procedure ()
|
||||
out "Hello! " console
|
||||
end procedure
|
||||
|
||||
# outputs "Hello! " 5 times
|
||||
repeat procedure 5
|
||||
Loading…
Add table
Add a link
Reference in a new issue