learnc/learnc13.c Güncelle
This commit is contained in:
parent
9a921624a9
commit
b77505ceee
@ -10,7 +10,7 @@ int main() {
|
|||||||
printf("5! = %i\n", factorial(5));
|
printf("5! = %i\n", factorial(5));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* define your function here (don't forget to declare it) */
|
// define your function here (don't forget to declare it)
|
||||||
int factorial(int x) {
|
int factorial(int x) {
|
||||||
|
|
||||||
if (x == 0) {
|
if (x == 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user