Skip to content

Commit 3e33791

Browse files
authored
Add Fizz Buzz in Wren (#4351)
1 parent 4e14c95 commit 3e33791

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

archive/w/wren/fizz-buzz.wren

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
for (i in (1..100)) {
2+
if (i % 15 == 0) {
3+
System.print("FizzBuzz")
4+
} else if (i % 5 == 0) {
5+
System.print("Buzz")
6+
} else if (i % 3 == 0) {
7+
System.print("Fizz")
8+
} else {
9+
System.print(i)
10+
}
11+
}

0 commit comments

Comments
 (0)