/**********************************************/ /* Computes n! by the recurrence n!=n*(n-1)! */ /**********************************************/ #include #include int main() { int i, n=20, nfact=1; for (i=1; i<=n; i++) { nfact*=i; printf("\n n=%d n!=%d\n",i,nfact); } }