各位大神帮我看看吧。。它老是给出这种错误,我不会改
#include<stdio.h>void main()
{
long int i;
int b1,b2,b3,b4,b5,k;
printf("please input the income:\n");
scanf("%d",&i);
b1=100000*(10%)
b2=b1+100000*(7.5%)
b3=b2+200000*(5%)
b4=b3+200000*(3%)
b5=b4+400000*(1.5%)
if(i<=1000000)
k=i*10%;
else
if(i<=200000)
k=b1+(i-100000)*(7.5%)
else
if(i<=400000)
k=b2+(i-200000)*(5.0%)
else
if(i<=600000)
k=b3+(i-400000)*(3.0%)
else
if(i<=1000000)
k=b4+(i-600000)*(1.5%)
else
k=b5+(i-10000000)*(1.0%)
printf("the input is %d",k);
}
:--------------------Configuration: 利润计算 - Win32 Debug--------------------
Compiling...
1.cpp
C:\Program Files (x86)\Microsoft Visual Studio\MyProjects\利润计算\1.cpp(8) : error C2059: syntax error : ')'
C:\Program Files (x86)\Microsoft Visual Studio\MyProjects\利润计算\1.cpp(15) : error C2181: illegal else without matching if
C:\Program Files (x86)\Microsoft Visual Studio\MyProjects\利润计算\1.cpp(17) : error C2059: syntax error : ')'
Error executing cl.exe.
1.obj - 3 error(s), 0 warning(s)