실험c++2-1

1017 단어
제1문제
/*    
 *     : 111  
 *       :       
 *     : 2016    3    27     
 *      :v1.0    
 *              :   
 *     :               
 *     :            
 *     :                
 *     :     
 *     :   if      
 */  
#include <iostream>    
using namespace std;    
int main()    
{     
    int weight,height,L;    
    cout<<"          (kg),  (cm):";    
    cin>>weight>>height;    
    L=height-100;    
    if(weight>1.2*L)    
        cout<<"    "<<endl;    
    else if(0.8*L>weight)   
        cout<<"    "<<endl;    
    else    
        cout<<"  "<<endl;    
    return 0;  
}  
<img src="http://img.blog.csdn.net/20160330212553639?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQv/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center" alt="" />
  :      

좋은 웹페이지 즐겨찾기