committed by
The Coding Aviator
parent
23cc43c301
commit
272499aa63
@ -136,7 +136,7 @@ When function is called within the same function, it is known as recursion in C.
|
||||
```c
|
||||
int factorial (int n)
|
||||
{
|
||||
if ( n < 0)
|
||||
if (n < 0)
|
||||
return -1; /*Wrong value*/
|
||||
if (n == 0)
|
||||
return 1; /*Terminating condition*/
|
||||
|
Reference in New Issue
Block a user