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
18
Task/FizzBuzz/Pony/fizzbuzz.pony
Normal file
18
Task/FizzBuzz/Pony/fizzbuzz.pony
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
use "collections"
|
||||
|
||||
actor Main
|
||||
new create(env: Env) =>
|
||||
for i in Range[I32](1, 100) do
|
||||
env.out.print(fizzbuzz(i))
|
||||
end
|
||||
|
||||
fun fizzbuzz(n: I32): String =>
|
||||
if (n % 15) == 0 then
|
||||
"FizzBuzz"
|
||||
elseif (n % 5) == 0 then
|
||||
"Buzz"
|
||||
elseif (n % 3) == 0 then
|
||||
"Fizz"
|
||||
else
|
||||
n.string()
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue