MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1vda9j/deleted_by_user/cera540/?context=3
r/ProgrammerHumor • u/[deleted] • Jan 16 '14
[removed]
446 comments sorted by
View all comments
Show parent comment
1
No, if I did that then I would never have FizzBuzz as a result.
EDIT: but since I did have an else there I could have said:
... if (divisibleBy5) { Console.Write("Buzz"); } else if (!divisibleBy3) { Console.Write(i); }
...
View all comments
Show parent comment
1
u/thereddarren Jan 16 '14 edited Jan 16 '14
No, if I did that then I would never have FizzBuzz as a result.
EDIT: but since I did have an else there I could have said:
... if (divisibleBy5) { Console.Write("Buzz"); } else if (!divisibleBy3) { Console.Write(i); }
...