#includeint main(void){ int child,women,men; for(men=0;men<=15;men++) for(women=0;women<=22;women++){ child=45-men-women; if(men*3+women*2+child*0.5==45) printf("men=%d,women=%d,child=%d\n",men,women,child); } return 0;}
本文共 346 字,大约阅读时间需要 1 分钟。
#includeint main(void){ int child,women,men; for(men=0;men<=15;men++) for(women=0;women<=22;women++){ child=45-men-women; if(men*3+women*2+child*0.5==45) printf("men=%d,women=%d,child=%d\n",men,women,child); } return 0;}
转载于:https://www.cnblogs.com/lvdingding13588022785/p/3353407.html