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
8
Task/100-doors/Coco/100-doors.coco
Normal file
8
Task/100-doors/Coco/100-doors.coco
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
doors = [false] * 100
|
||||
|
||||
for pass til doors.length
|
||||
for i from pass til doors.length by pass + 1
|
||||
! = doors[i]
|
||||
|
||||
for i til doors.length
|
||||
console.log 'Door %d is %s.', i + 1, if doors[i] then 'open' else 'closed'
|
||||
Loading…
Add table
Add a link
Reference in a new issue