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]