Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
13
Task/FizzBuzz/Ecstasy/fizzbuzz.ecstasy
Normal file
13
Task/FizzBuzz/Ecstasy/fizzbuzz.ecstasy
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
module FizzBuzz {
|
||||
void run() {
|
||||
@Inject Console console;
|
||||
for (Int x : 1..100) {
|
||||
console.print(switch (x % 3, x % 5) {
|
||||
case (0, 0): "FizzBuzz";
|
||||
case (0, _): "Fizz";
|
||||
case (_, 0): "Buzz";
|
||||
case (_, _): x.toString();
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue