c语言前两个wa,求解
查看原帖
c语言前两个wa,求解
445340
DueGin楼主2021/1/23 14:04
#include<stdio.h>
#include<math.h>
int main()
{
    int m;
    float h,x,b;
    scanf("%d %f",&m,&h);
    x=m/pow(h,2);
    //printf("%f",x);
    if(x<18.5) printf("Underweight");
    if(x>=18.5&&x<24) printf("Normal");
    if(x>=24)
    {
        printf("%.4f\nOverweight",b);
    }
}
2021/1/23 14:04
加载中...