function sum(min, max){
var sum = 0;
for(i = min; i <= max; i++){
if(i % 2 != 0){
sum += i;
}
}
return sum;
}
sum(0, 30);
sum(0, 50);
sum(9, 1000);
标签:min,sum,30,50,90,1000 From: https://www.cnblogs.com/bkyjmjweb/p/16732288.html
function sum(min, max){
var sum = 0;
for(i = min; i <= max; i++){
if(i % 2 != 0){
sum += i;
}
}
return sum;
}
sum(0, 30);
sum(0, 50);
sum(9, 1000);
标签:min,sum,30,50,90,1000 From: https://www.cnblogs.com/bkyjmjweb/p/16732288.html