Created
June 19, 2018 04:59
-
-
Save angusbarnes/e772ce1b310c5b57c31b0af7347cb95e to your computer and use it in GitHub Desktop.
FizzBuzz implementation
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
using System; | |
void Main() { | |
for (i = 0; i <= 100; i++) { | |
Print((i % 15) ? "FizzBuzz" : (i % 5) ? "Buzz" : (i % 3) ? "Fizz" : i.ToString()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment