与语句if(a>b)if(c>d)x=1;elsex=2;等价的是()
15 查阅
与语句if(a>b)if(c>d)x=1;elsex=2;等价的是()
- A.if(a>b){if(c>d)x=1;else x=2;}
- B.if(a>b){if(c>d)x=1;}else x=2;
- C.if((a>b)&&(c>d))x=1;else x=2;
- D.
if(a<=b)x=2;else if(c>d) x=1;
参考答案: