#include<iostream> \nusing namespace std; \nint main() { \tint n; \tcin >> n; \twhile(n--) \t{ \t\tchar name[5]; \t\tint hu,mai; \t\tcin >> name >> hu >> mai; \t\tif(hu<15||hu>20) \t\t\tcout << name << endl; \t\telse if(mai<50||mai>70) \t\t\tcout << name << endl; \t} \treturn 0; }

C++程序:检查身高体重不符合要求的人员

原文地址: http://www.cveoy.top/t/topic/p6oC 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录