What value does function mystery return when called with a value of 4?
int mystery ( int number )
{
if ( number <= 1 )
return 1;
else
return number * mystery( number -1 );
}
Enter numerical value using the virtual keypad. Round off where necessary.
What value does function mystery return when called with a value of 4?
int mystery ( int number )
{
if ( number <= 1 )
return 1;
else
return number * mystery( number -1 );
}
Enter numerical value using the virtual keypad. Round off where necessary.