Files
ivy/doc/sample/FizzBuzz.im

21 lines
260 B
Plaintext
Raw Normal View History

2024-11-02 15:11:00 +00:00
for i in 0 to:100 do
p = false
if i % 3 == 0 then
cout print:'fizz'
p = true
end
if i % 5 == 0 then
cout print:'buzz'
p = true
end
if !p then
cout print:'{i}'
end
cout cr
end