System.out.println("You bmi is" + bmi); //输出BMI
if (bmi < 16 )
System.out.println("You are seriously underweight");
else if (bmi < 18 )
System.out.println("You are underweight");
else if (bmi < 24 )
System.out.println("You are normal weight");
else if (bmi < 29 )
System.out.println("You are overweight");
else if (bmi < 35 )
System.out.println("You are seriously overweight");
else
System.out.println("You are gravely overweight");
}
}