拜托一楼写的不是javascript吧var r=0;for (var i=2;i<=100;i+=2){r+=i;}console.log(r);
var r=0;for (var i=2;i<=100;i+=2){r+=i;}document.write(r);
int s=0;for(int i=1;i<101;i++){if(i%2==0){s=s+i;}}不知道对不编程都忘记了