#include<stdio.h> int main() { float BMI,m,h; scanf("%f %f",&m,&h); BMI=m/(h*h); if(BMI<18.5) { printf("Underweight"); }else if(BMI>=18.5&&BMI<24) { printf("Normal"); }else{ printf("%.6g\nOverweight",BMI); } return 0; }
註冊一個 南阳理工学院OJ 通用賬戶,您就可以在我們提供的所有線上評測服務上提交程式碼、參與討論。
使用您的 南阳理工学院OJ 通用賬戶