Skip to content

Commit

Permalink
Create batsh.batsh
Browse files Browse the repository at this point in the history
  • Loading branch information
nloveladyallen committed May 22, 2016
1 parent f9c9436 commit d07d1d6
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions batsh.batsh
@@ -0,0 +1,18 @@
function fizzbuzz(i) {
if (i % 15 == 0) {
println("FizzBuzz");
} else if (i % 3 == 0) {
println("Fizz");
} else if (i % 5 == 0) {
println("Buzz");
} else {
println(i);
}
}

i = 1;

while (i < 101) {
fizzbuzz(i);
i = i + 1;
}

0 comments on commit d07d1d6

Please sign in to comment.