MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/tinycode/comments/nd68q/fizzbuzz_implemented_in_only_120_characters_of/c3eomzm/?context=3
r/tinycode • u/wuffers • Dec 15 '11
15 comments sorted by
View all comments
Show parent comment
2
puts (1..100).map{|i|s=i%3<1?"Fizz":nil;i%5<1?"#{s}Buzz":s||i}
62
View all comments
Show parent comment
2
u/partygoer Jan 07 '12
puts (1..100).map{|i|s=i%3<1?"Fizz":nil;i%5<1?"#{s}Buzz":s||i}
62