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
22
Task/FizzBuzz/PHL/fizzbuzz.phl
Normal file
22
Task/FizzBuzz/PHL/fizzbuzz.phl
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
module fizzbuzz;
|
||||
|
||||
extern printf;
|
||||
|
||||
@Integer main [
|
||||
var i = 1;
|
||||
while (i <= 100) {
|
||||
if (i % 15 == 0)
|
||||
printf("FizzBuzz");
|
||||
else if (i % 3 == 0)
|
||||
printf("Fizz");
|
||||
else if (i % 5 == 0)
|
||||
printf("Buzz");
|
||||
else
|
||||
printf("%d", i);
|
||||
|
||||
printf("\n");
|
||||
i = i::inc;
|
||||
}
|
||||
|
||||
return 0;
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue