Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
5
Task/Leap-year/XPL0/leap-year.xpl0
Normal file
5
Task/Leap-year/XPL0/leap-year.xpl0
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
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;
|
||||
];
|
||||
Loading…
Add table
Add a link
Reference in a new issue