Last Friday of each month: Difference between revisions
→{{header|Picat}}: Split into subsections.
No edit summary |
(→{{header|Picat}}: Split into subsections.) |
||
Line 3,202:
Year mod 400 == 0. </lang>
===Running the program===
There are several ways to run this program; let's call it "last_friday_of_each_month.pi":
===From Picat's shell
<pre>$ picat
Picat> cl(last_friday_of_each_month)
Picat> show_year(2022)
Line 3,220:
2022-10-28
2022-11-25
2022-12-30</pre>
===From the command line
Via <code>main(ARGV)</code>.
<pre>$ picat last_friday_of_each_month.pi 2022</pre>
<pre>$ picat -g "show_year(2022)" last_friday_of_each_month.pi</pre>
<pre>$ picat last_friday_of_each_month.pi</pre>
=={{header|PicoLisp}}==
|