public static void main (String[]arge){
int sum = 0;
int num = 2;
do {
num = (num+2);
sum=sum+num;
}
while ( num<10 );
System.out.println(" 10以内的偶数之和为:" + sum );
慕大叔
旅行的石头
懒喵
Uauslman
一条小咸鱼
波奔儿霸
冲啊
相关分类