与语句if(a>b) if(c>d) x=1 ; else x=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;正确答案A
与语句if(a>b) if(c>d) x=1 ; else x=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;正确答案A