#include<stdio.h>
#include<conio.h>
#include<math.h>
float sie(float x,int n);
void main()
{
  float x;
  int n;
  clrscr();
  printf("enter the value of x and n");
  scanf("%f%d",&x,&n);
  printf("%f is the value of sine(x)",sie(x*4*atan(1)/180,n));
  getch();
}
 float sie(float x,int n)
{
  float t=x,s=x,i=2;
  while(i<n)
 {
  t=-t*x*x/((2*i-2)*(2*i-1));
  s+=t;i++;
 }
 return s;
}