3 solutions

  • 0
    @ 2024-10-23 15:09:05

    #include<stdio.h> int main() { float x, y; scanf_s("%f %f",&x,&y); float BMI; BMI = y / (x * x); if (BMI < 18.5) { printf("low"); } else if (BMI < 24 & BMI >= 18.5) { printf("average"); } else if (BMI >= 24) { printf("high"); }; return 0;

    }

    Information

    ID
    88
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    5
    Tags
    # Submissions
    694
    Accepted
    264
    Uploaded By