News for hackers. Stuff that matters.
Re:Ask HN: Why is it that so many people fail fizzbuzz? by ukoki on Thursday November 22, 2012 @11:33AM (#4819248)
or in stupidly terse Ruby... f,b=3,5;(1..100).each{|i|s='';(s,f='Fizz',3)if(f-=1)==0;(s,b=s+'Buzz',5)if(b-=1)==0;puts(s==''?i:s)}

There are no comments on this comment yet.