qfedu-c-level/day8/homework/h2/tempfiles/a.c

10 lines
139 B
C
Raw Permalink Normal View History

#include "a.h"
#include <stdio.h>
int factorial(int n)
{
if (n == 0)
return 1;
else
return n * factorial(n - 1);
}