Skip to content

Instantly share code, notes, and snippets.

@cerkit
Last active Dec 2, 2015
Embed
What would you like to do?
Proof that I can write code :)
for (int i = 1; i <= 100; i++)
{
if ((i % 3 == 0) && (i % 5 == 0))
{
Debug.WriteLine("FizzBuzz");
}
else if (i % 3 == 0)
{
Debug.WriteLine("Fizz");
}
else if(i % 5 == 0)
{
Debug.WriteLine("Buzz");
}
else
{
Debug.WriteLine(i);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment