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
6
Task/FizzBuzz/Arc/fizzbuzz-1.arc
Normal file
6
Task/FizzBuzz/Arc/fizzbuzz-1.arc
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
(for n 1 100
|
||||
(prn:if
|
||||
(multiple n 15) 'FizzBuzz
|
||||
(multiple n 5) 'Buzz
|
||||
(multiple n 3) 'Fizz
|
||||
n))
|
||||
4
Task/FizzBuzz/Arc/fizzbuzz-2.arc
Normal file
4
Task/FizzBuzz/Arc/fizzbuzz-2.arc
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
(for n 1 100
|
||||
(prn:check (string (when (multiple n 3) 'Fizz)
|
||||
(when (multiple n 5) 'Buzz))
|
||||
~empty n)) ; check created string not empty, else return n
|
||||
6
Task/FizzBuzz/Arc/fizzbuzz-3.arc
Normal file
6
Task/FizzBuzz/Arc/fizzbuzz-3.arc
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
(for n 1 100
|
||||
(prn:case (gcd n 15)
|
||||
1 n
|
||||
3 'Fizz
|
||||
5 'Buzz
|
||||
'FizzBuzz))
|
||||
Loading…
Add table
Add a link
Reference in a new issue