#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;
}
I mean... you've just dumped some code here, with no explanation of what it's for, what you want it to do, or what problems you're having with it. What are we supposed to do? How are we supposed to help, when you tell us nothing about what it is you want help with?