Skip to content

Commit 858df52

Browse files
authored
Add Fizz Buzz in Pineapple (#4061)
1 parent 3a72aa0 commit 858df52

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

archive/p/pineapple/fizz-buzz.pine

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
def .main
2+
let i mutable = 1
3+
while i <= 100
4+
if i % 15 == 0
5+
"FizzBuzz".show
6+
elif i % 3 == 0
7+
"Fizz".show
8+
elif i % 5 == 0
9+
"Buzz".show
10+
else
11+
i.show
12+
13+
i = i + 1

0 commit comments

Comments
 (0)