求大神指教error C2059: syntax error : ';'怎么办
#include<iostream.h>int main()
{int a,b,sum;
a=2;
b=1;
sum=0;
while(a<=1000)
{
while(b<a)
{
if(a%b==0)
sum+=b;
else
goto;
b++;
}
if(sum==a)
cout<<a<<" ";
else
goto;
a++;
}
return 0;
}
这错在哪啊?
[此贴子已经被作者于2015-11-4 11:51编辑过]