Created
March 6, 2012 05:57
-
-
Save alanb1501/1983946 to your computer and use it in GitHub Desktop.
fizzbuzz linqpad
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
for(int i = 1; i <= 100; ++i) | |
{ | |
if (i % 15 == 0) | |
{ | |
"FizzBuzz".Dump(); | |
} | |
else if(i % 3 == 0) | |
{ "Fizz".Dump();} | |
else if( i % 5 == 0) | |
{ "Buzz".Dump();} | |
else | |
{ | |
i.Dump(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment