Shun 发表于 2021-12-25 15:20:29

BC36 健康评估


#include<stdio.h>
int main()
{
    double weight = 0;
    double BMI = 0;
    double high = 0;
    scanf("%lf %lf",&weight,&high);
    BMI=weight/(high*high);
    if(BMI>=18.5 && BMI<=23.9)
    {
      printf("Normal\n");
    }
    else
      printf("Abnormal\n");
    return 0;
}

https://blog.51cto.com/u_15460718/4839517
页: [1]
查看完整版本: BC36 健康评估