2 * factorial: Calculate's a number factorial
7 long double factorial(long n
)
12 for (m
= 1, i
= n
; i
> 1; i
-= 1)
18 int main(int argc
, char *argv
[])
24 printf("Usage: %s < number >\n", argv
[0]);
28 n
= strtol(argv
[1], NULL
, 10);
29 /* FIXME: Error checking */
33 /* FIXME: Explain why */
34 fprintf(stderr
, "Could not caculate the factorial\n");
38 printf("%ld! = %Le\n", n
, f
);