RosettaCodeData/Task/FizzBuzz/Arbre/fizzbuzz.arbre

16 lines
242 B
Text
Raw Permalink Normal View History

2013-04-10 14:16:51 -07:00
fizzbuzz():
for x in [1..100]
if x%5==0 and x%3==0
return "FizzBuzz"
else
if x%3==0
return "Fizz"
else
if x%5==0
return "Buzz"
else
return x
main():
fizzbuzz() -> io