Skip to content

Commit e1e22de

Browse files
authored
Add Fizz Buzz in Pinecone (#4068)
1 parent b16cbfc commit e1e22de

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

archive/p/pinecone/fizz_buzz.pn

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
i: 1 | i <= 100 | i: i + 1 @ (
2+
i % 15 = 0 ? (
3+
print: "FizzBuzz"
4+
) |
5+
i % 3 = 0 ? (
6+
print: "Fizz"
7+
) |
8+
i % 5 = 0 ? (
9+
print: "Buzz"
10+
) | (
11+
print: i
12+
)
13+
)

0 commit comments

Comments
 (0)