请问我空着的地方应该填什么
#include<stdio.h>
#include<math.h>
main()
{
int n = 1,count = 1;
float x;
double sum,term;printf("Input x:");
scanf("%f", );
sum = x;
term = x;
do{
term = ;
sum = sum + term;
n = n + 2;
;
}while( );
printf("sin(x) = %f,count = %d\n",sum,count);
}
&x
-term*x*x/(n*n+3*n+2)或-term*x*x/((n+2)*(n+1))或-term*pow(x,2)/((n+2)*(n+1))或-term*pow(x,2)/(n*n+3*n+2)——主张用第一个,出题者意思好像让用第3个
count++
term>=1.0E-5 || -term>=1.0E-5或fabs(term)>=1.0E-5——主张用前者,出题者意思好像让用后者
能不能解释一下思路 我有点看不懂