Created
March 29, 2022 08:08
-
-
Save andrewlalis/b23c01de93a658437ed8edf9b766c67c to your computer and use it in GitHub Desktop.
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
import std.stdio; | |
void main() { | |
for (int i = 0; i <= 100; i++) { | |
if (i % 3 == 0) write("Fizz"); | |
if (i % 5 == 0) write("Buzz"); | |
if (i % 3 != 0 && i % 5 != 0) write(i); | |
writeln(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment