摘要: 设计思路:根据题目要求应用穷举法设计程序 代码: #include<stdio.h>int main(){ int a,b,c; for(a=0;a<=98;a++) { b=98-a; if(a*2+b*4==386) { printf("鸡有%d只,兔有%d只\n",a,b); break; } 阅读全文
posted @ 2023-05-20 00:05 cvjj 阅读(583) 评论(0) 推荐(0)