请先阅读下面的代码。intx=1;inty=2;if(x82==0){y++;)else{y--;}System.out.println(y=+y);上面一段程序运行结束时,变量y的值为下列哪一项()

A.1 B.2 C.3 D.0

时间:2023-09-09 09:39:17

相似题目