/*
* Fonction recursive simple.
*/
unsigned long factoriel (int n)
{
if (n == 1 || n == 0)
return 1;
return n * factoriel (n - 1);
}my question is : for example if i invok factoriel(4) it gives me 24 (good) ,but when changed ( return 1 ) to ( return 2) after the first condition it gives me 48 . can some body explain this behave !! i personally and after alot of reading about recursion i didn't find any thing.
excuse me for english //


