Skip to content

Instantly share code, notes, and snippets.

@alanb1501
Created March 6, 2012 05:57
Show Gist options
  • Save alanb1501/1983946 to your computer and use it in GitHub Desktop.
Save alanb1501/1983946 to your computer and use it in GitHub Desktop.
fizzbuzz linqpad
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