/*copyright (c) 2013,烟台大学计算机学院
*All rights reserved.
*作者:赵振凯
*完成日期:2013年11月21日
*版本号:v1.0
*问题描述:求体重是否正常
*/
#include <iostream>
using namespace std;
int main()
{ double height,weight;
cin>>height>>weight;
if(weight>((height-100)*1.2))
cout<<"high"<<endl;
else if(weight<((height-100)*0.8))
cout<<"low"<<endl;
else
cout<<"normal"<<endl;
return 0;
}
运行结果:
心得体会:
老师发的答案是不是有点小问题.为什么提示没有输入数据类型?