16 lines
344 B
Text
16 lines
344 B
Text
#
|
|
# fizzbuzz
|
|
#
|
|
decl int i
|
|
for (set i 1) (< i 101) (inc i)
|
|
if (= (mod i 3) 0)
|
|
out "fizz" console
|
|
end if
|
|
if (= (mod i 5) 0)
|
|
out "buzz" console
|
|
end if
|
|
if (not (or (= (mod i 3) 0) (= (mod i 5) 0)))
|
|
out i console
|
|
end if
|
|
out endl console
|
|
end for
|