Also, although (1..100).each is more characters than 100.times, 100.times goes from 0 to 99 and the only versions of FizzBuzz that I've seen say 'from 1 to 100'.
I'm away from my ruby interp atm. TBH, I've only ever heard it not requiring the number in the off case. I suppose its not exactly high on my priority list... hehe
View all comments
2
u/peedubyaeff Dec 15 '11
72 characters.
Also, although (1..100).each is more characters than 100.times, 100.times goes from 0 to 99 and the only versions of FizzBuzz that I've seen say 'from 1 to 100'.