#include
using namespace std;
int main()
{
double hight,w,weight;
cout<<“标准体重(kg)=身高(cm)-100”<<endl;
cout<<“请输入您的身高(cm)”<<endl;
cin>>height;
weight=height-100;
cout<<“标准体重=”<<weight<<endl;
cout<<“请输入您的体重(kg)”<<endl;
cin>>w;
if(w>120/100c)
cout<<“超重”<<endl;
else if(w<120/100c)
cout<<“超轻”<<endl;
else
cout<<“正常”<<endl;
return 0;
}
标准体重求法
最新推荐文章于 2022-09-28 21:44:47 发布