Created
March 26, 2014 19:36
-
-
Save FennyFatal/9791463 to your computer and use it in GitHub Desktop.
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
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
string output; | |
for (int i = 1; i <= 100; i++) | |
{ | |
if (i % 15 == 0) | |
output = "FIZZBUZZ"; | |
else if (i % 3 ==0) | |
output = "FIZZ"; | |
else if (i % 5 ==0) | |
output = "BUZZ"; | |
else | |
output = i.ToString(); | |
Console.WriteLine(output); | |
} | |
Console.Read(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment