Skip to content

Commit

Permalink
Added FizzBuzz in GML
Browse files Browse the repository at this point in the history
  • Loading branch information
tyrese-r authored Jan 12, 2018
1 parent 9286f09 commit 97d9400
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions gamemakerlanguage.gml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
for (var i = 1; i <= 100; i++)
{
if (i % 15 == 0) {
show_debug_message("FizzBuzz");
} else if (i % 5 == 0) {
show_debug_message("Buzz");
} else if (i % 3 == 0) {
show_debug_message("Fizz");
} else {
show_debug_message(i);
}
}

0 comments on commit 97d9400

Please sign in to comment.