Pages

Wednesday, September 16, 2009

UVA Problem#369

Question:

Solution: 
double fact(int n){ 
int i; double f=1; 
for(i=2; i<=n; i++){ 
f = f*i; 
return f; 
}
int main(){ 
....
.... 
c = fact(n) / ( fact(n-m) * fact(m) ) 
... 
}



No comments:

Post a Comment