[填空题] 执行下列程序段后输出的结果是 【10】 。 public class Test{ public static void main(String args[]){int x,y;for(
13 查阅
[填空题] 执行下列程序段后输出的结果是 【10】 。 public class Test{ public static void main(String args[]){int x,y;for(y=1,x=1;y<=50;y++){ if(x>=10)break; if(x%2==1){ x+=5: continue; }x-=3; } System.out.println(y); } }
参考答案: