/* sine series */ formula  sin(x)=x-x^3/3! + x^5 / 5! -..........
#include<stdio.h>
#include<conio.h>
void main()


    {
	int n,i;
	float x,temp,s=0;
	clrscr();
	printf("Enter value for x:");
	scanf("%f",&x);
	printf("Enter number of terms:");
	scanf("%d",&n);
	x=x*(3.1415/180);
	printf("\nxvalue%f\n",x);
	temp=x;

	for(i=1;i<=n;i++)
	{
		s=s+temp;
		temp=-(temp*x*x)/((2*i)*(2*i+1));
		printf("\ttemp=%f",temp);

		printf("\tSum=%f",s);
	}
	printf("\nSum of sine series=%.2f",s);
	getch();
    }