有点小错误,求解释。
#include <stdio.h>int main()
{
float index,weight,height;
scanf("%f",&weight);
scanf("%f",&height);
index=weight/(height*height);
if(index<18)
printf("偏瘦");
else if(18<=index&&index<25)
printf("正常");
else if(25<=index&&index<30)
printf("微胖");
else if(30<=index&&index<35)
printf("较胖");
else if(35<=index&&index<40)
printf("肥胖");
else(index>=40)
printf("很胖");
return 0;
}