What is the output of this given program?
#include iostream
long factorial (long g)
{
if (g 1)
return (g * factorial (g + 1));
else
return (1);
}
int main ()
{
long num = 8;
cout num "! = " factorial ( num );
return 0;
}

Posted on by