Skip to content

Commit eade071

Browse files
authored
Add Fizz Buzz in ArkScript (#4356)
1 parent 2a970d8 commit eade071

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

archive/a/arkscript/fizz-buzz.ark

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
(mut i 1)
2+
(
3+
while (<= i 100) {
4+
(
5+
if (= 0 (mod i 15)) (print "FizzBuzz") (
6+
if (= 0 (mod i 5)) (print "Buzz")
7+
(if (= 0 (mod i 3)) (print "Fizz")
8+
(print i))))
9+
(set i (+ i 1))
10+
}
11+
)

0 commit comments

Comments
 (0)