Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Behold! The power of recursion.

by tachyon (Chancellor)
on Oct 18, 2004 at 02:44 UTC ( [id://400033]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    
    ...
        }
    }
    print "The guess was correct!";
    
  2. or download this
    sub fact_rec{ 
        my ($num) = @_;
    ...
    for (1..10){
        printf"%d!\t%10d\t%10d\n", $_, fact_rec($_), fact_it($_);
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2024-04-25 12:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found