大家看一下这是为什么
#include<stdio.h>
#include<math.h>
#define pi 3.1415926;
int main()
{
int x;
double y;
int start,end,step;
printf("请输入起始周期、终止点和步长\n");
scanf("%d%d%d",&start,&end,&step);
for (x=start;x<=end;x=x+step);
{
y=sin(x*pi/180);
printf("%d\t\t%f\n",x,y);
printf("\n");
}
return 0;
}
结果出现H:\MSDev98\MyProjects\cos3\cos3.c(13) : error C2143: syntax error : missing ')' before ';'
H:\MSDev98\MyProjects\cos3\cos3.c(13) : error C2143: syntax error : missing ';' before '/'
H:\MSDev98\MyProjects\cos3\cos3.c(13) : error C2059: syntax error : ')'
本人菜鸟,求助