求教2个WA
查看原帖
求教2个WA
519201
霄晓楼主2022/2/3 15:26
#include<stdio.h>
int main()
{
    double m,h,BMI;
    scanf("%lf %lf",&m,&h);
    BMI=m/(h*h);
    if(BMI<18.5)
    {printf("Underweight");}
    else if(BMI>=18.5&&BMI<24)
    {printf("Normal");}
    else
    printf("%g\n Overweight",BMI);
    return 0;
}
2022/2/3 15:26
加载中...