if(x>y)Z=X;
如果X>Y 执行Z=X,因为X不大于Y,所以Z=X这句话不执行,继续向下执行
X=Y;
X=20
Y=Z;
Y=30
Z还是原来的30
已知int x=10,y=20,z=30;以下语句执行后x、y、z的值?
已知int x=10,y=20,z=30;以下语句执行后x、y、z的值?
if(x>y) z=x;x=y;y=z
正确答案是20.30.30
if(x>y) z=x;x=y;y=z
正确答案是20.30.30
其他人气:624 ℃时间:2019-11-01 22:41:34
优质解答
我来回答
类似推荐
猜你喜欢
- 1数列an的前n项和Sn=3n-n²,则an
- 2三角形ABC角A.B.C对边分别为a,b,c,已知A=π/4,bsin(π/4-C)-csin(π/4-B)=a
- 3He sat learning against the back of the seat with his legs stretch out straight in front of him.译
- 4单项选折 ( )1.time( )dinner A.at B.for C.in ( )2.where( )your mother work?A.does B.do C.are ( )3
- 5this game is very() l like it very much
- 6求曲线参数的切线方程
- 7把中文翻译成英文我的父亲下星期要到纽约去My father will __ __ ___to New York next week
- 8游园不值诗题是什么意思
- 9求有哲理的古诗词名句,不用全诗,最好是句子(写高中议论文用)
- 10With out love ,what is life?