00001 00020 int fact(int n) 00021 { 00022 if (n == 0) 00023 return 1; 00024 else 00025 return n * fact(n-1); 00026 } // end fact