摘要: 自然语言解决问题:根据“勾股数”定义,所求三角形三边应满足条件 a+b=c2。可以在所求范围内利用穷举法找出满足条件的数 流程图:无 具体代码: #include <stdio.h>int main(){ int a,b,c; for(a=1;a<100;a++){ for(b=1;b<100;b+ 阅读全文
posted @ 2023-05-17 21:27 Mini-Q 阅读(73) 评论(0) 推荐(0)