6 lines
91 B
C
6 lines
91 B
C
|
unsigned int fact(unsigned n) {
|
||
|
if(n==0)
|
||
|
return 1;
|
||
|
return n * fact(n-1);
|
||
|
}
|