为啥零分啊

LJK666 2025-01-08 22:02:06 4

#include using namespace std;

int main() { double a;double c; cout << "请输入你的身高和体重" << endl; cin >> a >> c; if (c >= (a-100)*0.9 * 1.1) { cout << "fat" << endl; } else if (c <= (a - 100) * 0.9 * 0.9) { cout << "thin" << endl; } else if( (a - 100) * 0.9 * 0.9<c< (a - 100) * 0.9 * 1.1) { cout << "standard" << endl; } }

{{ vote && vote.total.up }}

共 1 条回复

root 站长

不要输出提示信息: cout << "请输入你的身高和体重" << endl;