您的位置:首页 > 其它

判断是不是胖子

2016-03-28 21:32 218 查看
#include <iostream>

using namespace std;

int main()
{
int high,tizhong,biaoti,c,d;
cin>>high>>tizhong;
biaoti=high-100;
cout<<"标准体重为 "<<biaoti<<endl;
c=biaoti*1.2;
d=biaoti*0.8;
if(tizhong>c)
{
cout<<"超重"<<endl;
}
if(tizhong<d)
{
cout<<"超轻"<<endl;
}
else
{
cout<<"正常"<<endl;
}
return 0;
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: