Skip to content
This repository was archived by the owner on Jan 18, 2021. It is now read-only.

Commit 500a0b7

Browse files
Added a simple fizzbuzz program in Oz
1 parent ccd04af commit 500a0b7

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

‎Oz/simple-fizzbuzz.oz‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
declare
2+
fun {FizzBuzz X}
3+
if X mod 15 == 0 then 'FizzBuzz'
4+
elseif X mod 3 == 0 then 'Fizz'
5+
elseif X mod 5 == 0 then 'Buzz'
6+
else X
7+
end
8+
end
9+
in
10+
for I in 1..100 do
11+
{Show {FizzBuzz I}}
12+
end

0 commit comments

Comments
 (0)