Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Behold! The power of recursion.

by tachyon (Chancellor)
on Oct 18, 2004 at 02:44 UTC ( #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
Node Status?
node history
Node Type: note [id://400033]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (7)
As of 2014-12-18 02:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (41 votes), past polls