The read out is the same thing and unless you're running this calculation one hundred thousand times per millisecond, I'm not sure it would make big difference other than the few characters you saved typing. In which case, it might also be better not to use "System.Console.Writeline()" 3 times but instead assign a string variable string s; [...] s = "Fizz" etc, [...]WriteLine(s); etc etc. for a net savings in typed characters.
View all comments
Show parent comment
2
u/[deleted] Jan 19 '14
Wouldn't
if (i %15 == 0) System.Console.WriteLine("FizzBuzz");
be better for this ?