摘要: 第1关:求和 ​ 题目描述:给你一个n,要求你编写一个函数求1+2+.......+n #include<stdio.h> int fact(int x) { int m, sum = 0; for (m = 1; m <= x; m++) sum += m; return sum; } int m 阅读全文
posted @ 2021-07-17 23:55 颜骏 阅读(1268) 评论(0) 推荐(1) 编辑