Last active
October 13, 2015 05:48
-
-
Save jmcd/4148900 to your computer and use it in GitHub Desktop.
An unreadable Fizz Buzz
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class FizzBuzz | |
{ | |
static void Main() | |
{ | |
for (var i = 1; i < 101; i++) | |
System.Console.WriteLine(i % 15 == 0 ? "FizzBuzz" : i % 3 == 0 ? "Fizz" : i % 5 == 0 ? "Buzz" : "" + i); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment