You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
357 B
15 lines
357 B
#include <bits/stdc++.h>
|
|
|
|
using namespace std;
|
|
|
|
int main() {
|
|
float height, weight;
|
|
cin >> height >> weight;
|
|
|
|
float BMI = weight / (height * height); //注意这个扩号
|
|
if (BMI < 18.5) cout << "thin" << endl;
|
|
if (BMI >= 18.5 && BMI < 24) cout << "normal" << endl;
|
|
if (BMI >= 24) cout << "fat" << endl;
|
|
return 0;
|
|
}
|