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