Created
December 17, 2012 11:14
-
-
Save georgespingos/4317529 to your computer and use it in GitHub Desktop.
One line FizzBuzz in C# (135 character)
This file contains 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
Enumerable.Range(1, 20).ToList().ForEach(c => Console.WriteLine((c%15==0)?"FizzBuzz":((c%3==0)?"Fizz":(c%5==0)?"Buzz":c.ToString()))); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment