求体重是否超标

来源:互联网 发布:淘宝客服改差评话术 编辑:程序博客网 时间:2024/04/29 02:03
01../*       02.*Copyright (c)2014,烟台大学计算机与控制工程学院       03.*All rights reserved.       04.*文件名称:sort.cpp       05.*作    者:战九州       06.*完成日期:2015年01月09日       07.*版 本 号:v1.0       08.*       #include <iostream>using namespace std;int main(){    int s,normal,low,high;    double t;    cin>>s>>t;    if((t-(s-100))>(s-100)*0.2)    {        cout<<"high";    }else if(((s-100)-t)>(s-100)*0.2)    {        cout<<"low";    }    else if((t-(s-100))<(s-100)*0.2||((s-100)-t)<(s-100)*0.2)    {        cout<<"normal";    }    return 0;}

0 0
原创粉丝点击