public class lianxi{ public static void main(String[] args){
int i = 0; int sum = 0; while(i <= 100){ sum += i; i+=2; } System.out.println("100以内的偶数之和是:" + sum);
}