0 Members and 1 Guest are viewing this topic.
Quote from: Qwerty.55 on September 27, 2011, 05:20:23 pmFizzBuzzCode: [Select]100.times do |index| puts (index%3==0)?("fizz"):((index%5==0)?("buzz"):(index.to_s))endGive me a cookie now.
FizzBuzz
100.times do |index| puts (index%3==0)?("fizz"):((index%5==0)?("buzz"):(index.to_s))end
Quote from: Ashbad on September 29, 2011, 07:11:09 pmQuote from: Qwerty.55 on September 27, 2011, 05:20:23 pmFizzBuzzCode: [Select]100.times do |index| puts (index%3==0)?("fizz"):((index%5==0)?("buzz"):(index.to_s))endGive me a cookie now.I tried, but it was a volatile cookie and your session was unexpectedly refreshed before you could receive it.
In other news, Frey continues kicking unprecedented levels of ass.