用c语言算出1~100偶数的和?

如题所述

第1个回答  2023-11-17
long sum() {
long result =0;
for(long i=1; i < 101; i+=2) {
result += i;
}
return result;
}
相似回答