Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Ternary vs. Sort vs. Max

by Athanasius (Bishop)
on Aug 10, 2015 at 14:08 UTC ( #1138037=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #! perl
    use strict;
    ...
    my $m = max($x, $y);
    
    print "max is $m\n";
    
  2. or download this
     0:05 >perl 1334_Med.pl 17 12
    max is 17
    ...
    1334_Med.pl syntax OK
    
     0:05 >
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1138037]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2021-01-16 06:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?