learnc/learnc13.c Güncelle
This commit is contained in:
1 parent
9a921624a9
commit
b77505ceee
1 file changed
+1
-1
+1
-1
@@ -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) {
|
||||||
|
|||||||
Reference in new issue
Block a user