编译错误 error: expected ')' before ';' token
#include<stdio.h>#include<math.h>
int main()
{
double sum=0;
int i,j;
int n;
scanf("%d",&n);
for(i=1,j=2;i<=n;i++;j++)
{
sum+=i/j;
}
printf("%.2lf",sum);
}
错误如下F:\123\main.cpp|9|error: expected ')' before ';' token|
F:\123\main.cpp|9|error: expected ';' before ')' token|