#include <stdio.h>
#include <math.h>
int main()
{
int i, n;
float x, val, sum, t;
printf(" Enter the value for x : ");
scanf_s("%f", &x);
n = 10;
val = x;
x = x * 3.14159 / 180;
t = x;
sum = x;
for (i = 1; i < n + 1; i++)
{
t = (t * pow((double)(-1), (double)(2 * i - 1)) * x * x) / (2 * i * (2 * i + 1));
sum = sum + t;
}
printf("\nsine value of %f is : %8.4f\n", val, sum);
getchar();
getchar();
return 0;
}