Subscribe to andrewsw's Blog        RSS Feed
* * * * *

The Programming Bus

Icon 4 Comments
Invited round for a cup of tea, the friend's house is two bus stops away. His house is then directly opposite from the bus stop.

- - - - -

Factorial Walkthrough (Recursion)

Icon Leave Comment
Doing what it says on the tin! Walking through recursive function calls.

The programming language is not important, as long as you understand functions (function arguments and return statements).

Factorial :wikipedia

long factorial(int n) {    if (n == 0)        return 1;     else        return n * factorial(n-1);}

Page 1 of 1