Leap year: Difference between revisions
→creating RPL entry
m (simplify) |
|||
Line 3,232:
The leap? method is aliased as gregorian_leap? And yes, there is a julian_leap? method.
=={{header|RPL}}==
{{works with|Halcyon Calc|4.2.7}}
<syntaxhighlight lang="RPL">
≪ DUP 100 MOD
OVER 4 MOD
ROT 400 MOD
IFTE NOT
≫
'LEAP?' STO
2000 LEAP?
2001 LEAP?
2020 LEAP?
2100 LEAP?
</syntaxhighlight>
{{out}}
<pre>
4:1
3:0
2:1
1:0
</pre>
=={{header|Rust}}==
|