Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (8)
As of 2017-02-24 21:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (363 votes). Check out past polls.