10 lines
255 B
WDTE
10 lines
255 B
WDTE
let str => import 'strings';
|
|
|
|
let multiple of n => == (% n of) 0;
|
|
|
|
let leap year => str.format '{} is{} a leap year.' year (switch year {
|
|
multiple 400 => '';
|
|
multiple 100 => ' not';
|
|
multiple 4 => '';
|
|
default => ' not';
|
|
}) -- io.writeln io.stdout;
|