12 lines
212 B
Text
12 lines
212 B
Text
|
fn main(ctx: Context) {
|
||
|
let log = ctx.log.info;
|
||
|
for i in 1...100 {
|
||
|
match (i % 3, i % 5) {
|
||
|
(0, 0) => log("fizzbuzz"),
|
||
|
(0, _) => log("fizz"),
|
||
|
(-, 0) => log("buzz"),
|
||
|
(_, _) => log("{}", i),
|
||
|
}
|
||
|
}
|
||
|
}
|