Leap year: Difference between revisions

add simple POSIX shell implementation
(add an implementation for sed)
(add simple POSIX shell implementation)
Line 3,421:
 
=={{header|UNIX Shell}}==
POSIX compatible:
<syntaxhighlight lang="sh">is_leap() {
return $((${1%00} & 3))
}</syntaxhighlight>
 
Original Bourne:
<syntaxhighlight lang="sh">leap() {
559

edits