C语言程序题 求大神指教
就是这个第三题我写的。。。运行不出来
#include<stdio.h>
#include<math.h>
void main()
{
double x,s;
int 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);
}