RosettaCodeData/Task/FizzBuzz/Objeck/fizzbuzz.objeck

21 lines
399 B
Text
Raw Permalink Normal View History

2013-04-10 22:43:41 -07:00
bundle Default {
class Fizz {
function : Main(args : String[]) ~ Nil {
for(i := 0; i <= 100; i += 1;) {
if(i % 15 = 0) {
"FizzBuzz"->PrintLine();
}
else if(i % 3 = 0) {
"Fizz"->PrintLine();
}
else if(i % 5 = 0) {
"Buzz"->PrintLine();
}
else {
i->PrintLine();
};
};
}
}
}