5 lines
131 B
Text
5 lines
131 B
Text
func LeapYear(Y); \Return 'true' if Y is a leap year
|
|
int Y;
|
|
[if rem(Y/100)=0 then return rem(Y/400)=0;
|
|
return rem(Y/4)=0;
|
|
];
|