编了一个程序调试有错误,但又找不出来错在那里,请求高手指点
#include"stdio.h"#include"math.h"
main()
{
int Q,n;
float m,a;
printf("please enter Q:");
scanf("%d",&Q);
n=1;
a=0.2*n;
while(n<=900)
{
m=[3.14+Q-a+sin(2a-2Q)/2-
4*sin(a-Q)*sinQ*sinQ*0.218^[cotQ*(a-Q-3.14)]-
2*sin(a-Q)*sin(a-Q)*sinQ*sinQ+
tanQ*sin(a-Q)*sin(a-Q)-
tanQ*sin(a-Q)*sin(a-Q)*
0.218^[cotQ*(a-Q-3.14))]/2;
printf("\n%lf,%lf\n",m,a);
n++;
}
}