#include<math.h>
float sine(float);
void main()
{
float x;
clrscr();
printf("enter the angle of x:\t:");
scanf("%f",&x);
printf("the value of sine is:\t%f",sine(x*4*atan(1/180)));
getch();
}
float sine(float x)
{   static n=30;
static float t,s;
if(n==1)
{{t=s=x;n=2;}return s;
}
else { n--;
sine(x);
t=-(t*x*x)/((2*n-2)*(2*n-1));
s=s+t;
n++;
return s;
}}