- 博客(1)
- 收藏
- 关注
原创 C语言典型实例:百钱买百鸡
百钱买百鸡 #include<stdio.h> int main() { int x,y,z; for(x=0;x<100;x++) { for(y=0;y<=100;y++) { for(z=0;z<=100;z++) { if(5*x+3*y+z/3==100&&z%3==0&&x+y+z==100) { printf("%d %d %d",x,y,z); } } } }
2021-10-18 21:51:11 2280 1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人