RosettaCodeData/Task/Leap-year/WDTE/leap-year.wdte
2023-07-01 13:44:08 -04:00

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;