qfedu-c-level/day8/homework/h2/testFactorial.c

11 lines
188 B
C

#include "./includes/a.h"
#include <stdio.h>
int main()
{
int n;
printf("Please input a number: ");
scanf("%d", &n);
printf("%d! = %d\n", n, factorial(n));
return 0;
}