First commit of partial RosettaCode contents.
Pushing this for testing purposes. Lots of work still needed.
This commit is contained in:
commit
1e05ecd7ee
781 changed files with 9080 additions and 0 deletions
2
Task/FizzBuzz/CoffeeScript/fizzbuzz-2.coffee
Normal file
2
Task/FizzBuzz/CoffeeScript/fizzbuzz-2.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)
|
||||
9
Task/FizzBuzz/CoffeeScript/fizzbuzz.coffee
Normal file
9
Task/FizzBuzz/CoffeeScript/fizzbuzz.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
|
||||
Loading…
Add table
Add a link
Reference in a new issue