We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a788a63 commit 84d4aceCopy full SHA for 84d4ace
archive/d/d/fizz_buzz.d
@@ -0,0 +1,11 @@
1
+import std.stdio;
2
+
3
+void main()
4
+{
5
+ for (int i = 1; i <= 100; i++) {
6
+ if (i % 15 == 0) writeln("FizzBuzz");
7
+ else if (i % 5 == 0) writeln("Buzz");
8
+ else if (i % 3 == 0) writeln("Fizz");
9
+ else writeln(i);
10
+ }
11
+}
0 commit comments