她胖吗?

来源:互联网 发布:域名分发系统 编辑:程序博客网 时间:2024/04/28 12:55
#include <iostream>#include <cstdio>#include <iomanip>using namespace std;int main(){    int height,st;    double weight;    cin>>height>>weight;    st=height-100;    if(weight/st>1.2)        cout<<"high\n";    else if(weight/st<0.8)        cout<<"low\n";    else        cout<<"normal\n";    return 0;}

输出结果:




0 0
原创粉丝点击