I made this program for printing the sine series.It is not displaying any errors but just exiting without showing the result.Please help...
double fact(double n)
{
if(n!=1)
return n*(n-1);
}
long int fact(int n)
{
if(n>1)
return n*fact(n-1);
else
return 1;
}
long int fact(int n) { return n>1?n*fact(n-1):1; }