Home > Back-end >  A freshman c beginners help to see what was wrong
A freshman c beginners help to see what was wrong

Time:11-21

# include
Double fact (int n)
{
int i;
Int sum=1;
For (I=n; I> 1; I -) {
The sum *=I;
}
return sum;
}
Int main ()
{
Int m, n;
double result;
The scanf (" % d % d ", & m, & n);
Result=fact (n)/(the fact fact (m) * (n - m));
Printf (" result=% 0 f ", result);
}
  • Related