Add tasks for all the new languages
This commit is contained in:
parent
9dc3c2bb62
commit
bba7bfd280
13208 changed files with 134745 additions and 0 deletions
11
Task/Sierpinski-triangle/Nim/sierpinski-triangle.nim
Normal file
11
Task/Sierpinski-triangle/Nim/sierpinski-triangle.nim
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
const size = 1 shl 4 - 1
|
||||
|
||||
for y in countdown(size, 0):
|
||||
for i in 0 .. <y:
|
||||
stdout.write " "
|
||||
for x in 0 .. size-y:
|
||||
if (x and y) != 0:
|
||||
stdout.write " "
|
||||
else:
|
||||
stdout.write "* "
|
||||
stdout.write "\n"
|
||||
Loading…
Add table
Add a link
Reference in a new issue