acm她胖吗?(贺老师版)

来源:互联网 发布:php图文文章发布系统 编辑:程序博客网 时间:2024/04/28 18:41
上机内容:C++程序的编写和运行
上机目的:掌握简单C++程序的编辑、编译、连接和运行的一般过程
我的程序:
#include <iostream>#include<cstdio>#include <iomanip>using namespace std;int main(){
    int height,weight,st;    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;}


运行结果: 略
心得体会:啊。。。自我感觉差不多。。。
知识点总结:略
原创粉丝点击