题解 | #四季#
健康评估
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 kg=sc.nextDouble(); double sg=sc.nextDouble(); double BMI=kg/(sg*sg); if(BMI>=18.5&&BMI<=23.9) { System.out.println("Normal"); }else{ System.out.println("Abnormal"); } } }