Sunday, August 2, 2009

What is a 'c' code for finding a factorial of a number using recursive functions?

int abc(int n) {


if(n==0) {


return 1;


} else {


return n*abc(n-1);


}


}


No comments:

Post a Comment