import java.util.Scanner;
public class CalcBMI {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
float fHeight,fWeight,fBmi;
System.out.println("请输入您的体重(kg):");
fWeight=sc.nextFloat();
System.out.println("请输入您的身高(m):");
fHeight=sc.nextFloat();
fBmi=fWeight/(fHeight*fHeight);
System.out.println("您的BMI指数为:"+fBmi);
if (fBmi<18.5)
System.out.println("您的健康状况:偏瘦");
else if(fBmi>=18.5 && fBmi<25)
System.out.println("您的健康状况:正常");
else if(fBmi>=25 && fBmi<30)
System.out.println("您的健康状况:超重");
else if(fBmi>=30 && fBmi<35)
System.out.println("您的健康状况:轻度肥胖");
else if(fBmi>=35 && fBmi<40)
System.out.println("您的健康状况:中度肥胖");
else
System.out.println("您的健康状况:重度肥胖");
}
}
//信管183 赵健//