Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

One recursion to loop them all

Name: Anonymous 2011-04-01 11:52

Why do you need any loop constructs if you have recursion

Name: Anonymous 2011-04-01 19:19

>>12

long fact(long n) { return n ? n * fact(n-1) : 1; }

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List