I have the following code:

i dont get why you have 2 return statements. Because once it reaches 0, it will return 1. But why does it also return the result of: return n * factorial ( n-1 );?Code:int factorial( int n){ if ( n == 0 ) return 1; else return n * factorial ( n-1 ); }

Thanks