Skip to content

Commit f5d6942

Browse files
authored
Add Fizz Buzz in Moonscript (#4058)
1 parent 4f7c484 commit f5d6942

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
for i = 1, 100
2+
if i % 3 == 0 and i % 5 == 0
3+
print "FizzBuzz"
4+
continue
5+
if i % 3 == 0
6+
print "Fizz"
7+
continue
8+
if i % 5 == 0
9+
print "Buzz"
10+
continue
11+
else
12+
print i

0 commit comments

Comments
 (0)