Skip to main content

in reply to 🌈 ☯️Teresita🐧👭

#perl, too:
$ cat pi.pl <br>use v5.36;<br>use utf8;<br><br>use constant {<br>    π => 3.14159265358978323846264,<br>    r => 6378,<br>};<br><br>say 2*π*r;<br>say 4*π*r**2;<br><br>$ perl pi.pl<br>40074.155889191275<br>511185932.522523904<br>$<br>
#perl
This entry was edited (2 months ago)