1 条题解
-
0
C++ :
#include <iostream> using namespace std; int main() { float weight, height, bmi; cin >> weight >> height; bmi = weight / (height * height); if(bmi<18.5){ cout << "体型:瘦弱"; } else if(bmi>=18.5 && bmi<24.9){ cout << "体型:正常"; } else if(bmi>=25 && bmi<29.9){ cout << "体型:超重"; } else{ cout << "体型:肥胖"; } return 0; }
- 1
信息
- ID
- 540
- 时间
- 1000ms
- 内存
- 128MiB
- 难度
- (无)
- 标签
- 递交数
- 0
- 已通过
- 0
- 上传者