News for hackers. Stuff that matters.
Re:Find the Bug in my Fizz Buzz Interview (2:47 video) by extension on Thursday January 19, 2012 @12:25PM (#3485475)
No, in that case the first two conditionals will both pass and the result will end up as "FizzBuzz".
Re:Find the Bug in my Fizz Buzz Interview (2:47 video) by denzil_correa on Monday January 23, 2012 @03:46PM (#3502059)
Well, that would depend on the print statement. Generally, all of them have new lines. Even if they don't you would have to generate new lines appropriately otherwise the next number would print right next to Fizz.

PS : My assumption is that you need to print each number or Fizz or Buzz or FizzBuzz in a separate line.

Re:Find the Bug in my Fizz Buzz Interview (2:47 video) by splatterdash on Thursday January 19, 2012 @02:58PM (#3486331)
Well, you can check for 3 AND 5 first (or check for 15 altogether). This is if you have two subsequent checks for 3 and for 5.