有定义语句:int a=1,b=2,c=3,x;,则以下选项中各程序段执行后,x的值不为3的是______。
A.if (c<a) x=1;Else if (b<a) x=2;Else x=3; B.if (a<3) x=3;Else if (a<2) x=2;Else x=1; C.if (a<3) x=3;If (a<2) x=2;If (a<1) x=1; D.if (a<b) x=b;If (b<c) x=c;If (c<a) x=a;正确答案C
有定义语句:int a=1,b=2,c=3,x;,则以下选项中各程序段执行后,x的值不为3的是______。
A.if (c<a) x=1;Else if (b<a) x=2;Else x=3; B.if (a<3) x=3;Else if (a<2) x=2;Else x=1; C.if (a<3) x=3;If (a<2) x=2;If (a<1) x=1; D.if (a<b) x=b;If (b<c) x=c;If (c<a) x=a;正确答案C