Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
9
Task/FizzBuzz/CoffeeScript/fizzbuzz-1.coffee
Normal file
9
Task/FizzBuzz/CoffeeScript/fizzbuzz-1.coffee
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
for i in [1..100]
|
||||
if i % 15 is 0
|
||||
console.log "FizzBuzz"
|
||||
else if i % 3 is 0
|
||||
console.log "Fizz"
|
||||
else if i % 5 is 0
|
||||
console.log "Buzz"
|
||||
else
|
||||
console.log i
|
||||
10
Task/FizzBuzz/CoffeeScript/fizzbuzz-2.coffee
Normal file
10
Task/FizzBuzz/CoffeeScript/fizzbuzz-2.coffee
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
for i in [1..100]
|
||||
console.log \
|
||||
if i % 15 is 0
|
||||
"FizzBuzz"
|
||||
else if i % 3 is 0
|
||||
"Fizz"
|
||||
else if i % 5 is 0
|
||||
"Buzz"
|
||||
else
|
||||
i
|
||||
2
Task/FizzBuzz/CoffeeScript/fizzbuzz-3.coffee
Normal file
2
Task/FizzBuzz/CoffeeScript/fizzbuzz-3.coffee
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
for i in [1..100]
|
||||
console.log(['Fizz' if i % 3 is 0] + ['Buzz' if i % 5 is 0] or i)
|
||||
Loading…
Add table
Add a link
Reference in a new issue