第2週プロジェクト2標準体重
767 ワード
問題およびコード:
/*
*Copyright(c)2016,
*All rights reserved.
* :test.cpp
* :
* :2016 3 5
*
* : : (kg)= (cm)-100, 20% , 20% 。
* , :
* (1)
* (2) , ( / / )
*/
#include<iostream>
using namespace std;
int main()
{
double standard,weight,height;
cout<<" :";
cin>>height>>weight;
standard=height-100;
cout<<" :"<<standard<<endl;
if(weight>=standard*1.2)
cout<<" : ";
else if(weight<=standard*0.8)
cout<<" : ";
else
cout<<" : ";
return 0;
}