题解 | #健康评估#
健康评估
http://www.nowcoder.com/practice/08b28e61ff6345febf09969b3a167f7e
import java.util.Scanner;
// 我要变得正常
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
double weight = sc.nextDouble();
double height = sc.nextDouble();
double bmi = weight / (height * height);
if(bmi>=18.5 && bmi <= 23.9) {
System.out.println("Normal");
} else {
System.out.println("Abnormal");
}
}
}