Skip to main content
edited body
Source Link

#C#, 128 126 125 124 bytes

class A{static void Main(){for(var i=1;i++<100;i=0;i++<100;)System.Console.Write("{0:#}{1:;;Fizz}{2:;;Buzz}\n",i%3*i%5>0?i:0,i%3,i%5);}}

89 bytes without the boilerplate code around.

Done with the use of C#'s conditional formatting.

With two section separators ;, Fizz or Buzz are printed if the value from their condition is zero.


Saved a total of 4 bytes thanks to @RubberDuck, @Timwi and @Riokmij.

#C#, 128 126 125 124 bytes

class A{static void Main(){for(var i=1;i++<100;)System.Console.Write("{0:#}{1:;;Fizz}{2:;;Buzz}\n",i%3*i%5>0?i:0,i%3,i%5);}}

89 bytes without the boilerplate code around.

Done with the use of C#'s conditional formatting.

With two section separators ;, Fizz or Buzz are printed if the value from their condition is zero.


Saved a total of 4 bytes thanks to @RubberDuck, @Timwi and @Riokmij.

#C#, 128 126 125 124 bytes

class A{static void Main(){for(var i=0;i++<100;)System.Console.Write("{0:#}{1:;;Fizz}{2:;;Buzz}\n",i%3*i%5>0?i:0,i%3,i%5);}}

89 bytes without the boilerplate code around.

Done with the use of C#'s conditional formatting.

With two section separators ;, Fizz or Buzz are printed if the value from their condition is zero.


Saved a total of 4 bytes thanks to @RubberDuck, @Timwi and @Riokmij.
added 30 characters in body
Source Link

#C#, 128 126 125125 124 bytes

class A{static void Main(){for(var i=1;i<101;i++i=1;i++<100;)System.Console.Write("{0:#}{1:;;Fizz}{2:;;Buzz}\n",i%3*i%5>0?i:0,i%3,i%5);}}

89 bytes without the boilerplate code around.

Done with the use of C#'s conditional formatting.

With two section separators ;, Fizz or Buzz are printed if the value from their condition is zero.


Saved two and onea total of 4 bytes thanks to @RubberDuck and, @Timwi and @Riokmij.

#C#, 128 126 125 bytes

class A{static void Main(){for(var i=1;i<101;i++)System.Console.Write("{0:#}{1:;;Fizz}{2:;;Buzz}\n",i%3*i%5>0?i:0,i%3,i%5);}}

89 bytes without the boilerplate code around.

Done with the use of C#'s conditional formatting.

With two section separators ;, Fizz or Buzz are printed if the value from their condition is zero.


Saved two and one bytes thanks to @RubberDuck and @Timwi.

#C#, 128 126 125 124 bytes

class A{static void Main(){for(var i=1;i++<100;)System.Console.Write("{0:#}{1:;;Fizz}{2:;;Buzz}\n",i%3*i%5>0?i:0,i%3,i%5);}}

89 bytes without the boilerplate code around.

Done with the use of C#'s conditional formatting.

With two section separators ;, Fizz or Buzz are printed if the value from their condition is zero.


Saved a total of 4 bytes thanks to @RubberDuck, @Timwi and @Riokmij.
added 107 characters in body
Source Link

#C#, 128128 126 125 bytes

class A{static void Main(){for(var i=1;i<101;i++)System.Console.WriteLineWrite("{0:#}{1:;;Fizz}{2:;;Buzz}"\n",i%3*i%5==0i%3*i%5>0?0:i:0,i%3,i%5);}}

89 bytes without the boilerplate code around.

Done with the use of C#'s conditional formatting.

With two section separators ;, Fizz or Buzz are printed if the value from their condition is zero.


Saved two and one bytes thanks to @RubberDuck and @Timwi.

#C#, 128 bytes

class A{static void Main(){for(var i=1;i<101;i++)System.Console.WriteLine("{0:#}{1:;;Fizz}{2:;;Buzz}",i%3*i%5==0?0:i,i%3,i%5);}}

Done with the use of C#'s conditional formatting.

With two section separators ;, Fizz or Buzz are printed if the value from their condition is zero.

#C#, 128 126 125 bytes

class A{static void Main(){for(var i=1;i<101;i++)System.Console.Write("{0:#}{1:;;Fizz}{2:;;Buzz}\n",i%3*i%5>0?i:0,i%3,i%5);}}

89 bytes without the boilerplate code around.

Done with the use of C#'s conditional formatting.

With two section separators ;, Fizz or Buzz are printed if the value from their condition is zero.


Saved two and one bytes thanks to @RubberDuck and @Timwi.
added 7 characters in body
Source Link
Loading
Source Link
Loading