This commit is contained in:
HuangHai
2025-08-30 18:35:01 +08:00
commit 1f397eca87
6258 changed files with 1487241 additions and 0 deletions

14
TangDou/XiTi/1225.cpp Normal file
View File

@@ -0,0 +1,14 @@
#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;
}