C语言程序题求指教
我想请教一下大神,我编的这个用泰勒展开式求sinx的程序到底哪里出错了 有没有大神给我改一改。

#include<stdio.h>
#include<math.h>
void main()
{
double s;
int x,i,r,p;
scanf("%lf",&x);
for(i=1,r=2,s=0.0,p=1;(fabs(pow((double)x,(double)i)*pow((double)-1,(double)r)/p))>0.00001;r++,i=i+2)
{p=p*i; s=s+(pow((double)x,(double)i)*pow((double)-1,(double)r))/p;}
printf("SIN%lf的值为%lf",x,s);
}