C
This commit is contained in:
1 parent
b77505ceee
commit
5bae8be9fe
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