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