飛飛(八)はデブについて、成人男性の標準体重公式は、標準体重(kg)=身長(cm)-100、超標準20%超重量、標準体重より20%軽い超清である.出力標準体重、出力体重状態(正常/過体重/超軽量)
997 ワード
<img src="http://img.blog.csdn.net/20160318125406608?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQv/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center" alt="" />/*
*Copyright (c) 2016,
*All rights reserved.
* :test.cpp
* :
* :2016 3 17
* :1.0
*
* : : : (kg)= (cm)-100, 20% , 20% 。
* : , 。
* : , , ( / / )
*/
#include <iostream>
using namespace std;
int main()
{
double biaozhuntizhong,shengao,tizhong,n;
cin>>shengao>>tizhong;
biaozhuntizhong=shengao-100;
n=tizhong/biaozhuntizhong;
if(n>1.2)
cout << biaozhuntizhong<<" "<< endl;
else if(n<0.8)
cout<< biaozhuntizhong<< " "<<endl;
else
cout<< biaozhuntizhong<< " "<<endl;
return 0;
}