Skip to content

Instantly share code, notes, and snippets.

@andrewlalis
Created March 29, 2022 08:08
Show Gist options
  • Save andrewlalis/b23c01de93a658437ed8edf9b766c67c to your computer and use it in GitHub Desktop.
Save andrewlalis/b23c01de93a658437ed8edf9b766c67c to your computer and use it in GitHub Desktop.
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