求更正、、为什么输入>10的数答案都小于0???
#include<stdio.h>void main()
{
float x,l,m,n,o,p,q;
printf("请输入当月利润:(万元)\n");
scanf("%f",&x);
if((x<=10)&&(x>0))
{l=x*(0.1);
printf("l=%f\n",l);}
else if((x<=20)&&(x>10))
{m=l+(x-10)*(0.075);
printf("m=%f\n",m);}
else if((x>=20)&&(x<40))
{n=m+(x-20)*(0.05);
printf("n=%f\n",n);}
else if((x>=40)&&(x<60))
{o=n+(x-40)*(0.03);
printf("o=%f\n",o);}
else if((x>=60)&&(x<100))
{p=o+(x-60)*(0.015);
printf("p=%f\n",p);}
else if(x>=100)
{q=p+(x-100)*(0.01);
printf("q=%f\n",q);}
else{printf("error!\n");}
}