标签:
public class Lingx {
public static void main(String[]args){
int ji=0;
int ou=0;
for(int i=0;i<=100;i++){
if(i%2==0){
ou=ou+i;
} else
ji=ji+i;
} System.out.println(ou);
System.out.println(ji);
}
}
标签:
原文地址:http://www.cnblogs.com/zjh-/p/5516213.html