int Factorial( const int N ){ int i,sum=1; if(N==0) { return 1; } else if(N<0) { return 0; } else { for(i=1;i<=N;i++) { sum*=i; } return sum; }}