java: for/while例题,switch
for/while例题求1到100之间偶数的和,用for/while完成for:int res=0; for(int i=1;i<=100;i++){ if(i%2==0){ res+=i; } } System.out.println(res); }while:int res1 = 0; int k = 1; whil...