Leap year: Difference between revisions
Content added Content deleted
m (simplify) |
|||
Line 3,232: | Line 3,232: | ||
The leap? method is aliased as gregorian_leap? And yes, there is a julian_leap? method. |
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}}== |
=={{header|Rust}}== |