网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

以下错误的if语句是:

A.if(x>y) z=x;

B.if(x==y) z=0;

C.if(x!=y) printf("%d",x) else printf("%d",y);

D.if(x


参考答案

更多 “ 以下错误的if语句是:A.if(x>y) z=x;B.if(x==y) z=0;C.if(x!=y) printf("%d",x) else printf("%d",y);D.if(x ” 相关考题
考题 以下不正确的语句为()。 A.if(Xy){x++;y++;}B.if(Xy)C.if(X=y)&&(X!=0)X+=yD.if(x)Z=Z/X

考题 以下选项中,正确的if-else语句是( )A.if(x!=0) printf("%d",x) else printf("%d",-x);B.if(x!=0) { x=x+y;printf("%d",x);} else printf("%d",-x);C.if(x!=0) x=x+y;printf("%d",x); else printf("%d",-x);D.if(x!=0) { x=x+y;printf("%d",x)}; else printf("%d",-x);

考题 下列语句中,功能与其他语句不同的是()。A.if(a) printf(”%d”,x); else printf(”%d”,y);B.if(a==0) printf(”%d”,y); else printf(”%d”,x);C.if(a!=0) printf(”%d”,x); else printf(”%d”,y);D.if(a==0) printf(”%d”,x); else printf(”%d”,y);

考题 下列条件语句中,输出结果与其他语句不同的是()A.if (a!=0 ) printf("%dn", x); else printf("%dn", y);B.if (a==0 ) printf("%dn", y); else printf("%dn", x);C.if (a==0 ) printf("%dn", x); else printf("%dn", y);D.if (a ) printf("%dn", x); else printf("%dn", y);

考题 下列条件语句中,功能与其他语句不同的是()。A.if(a) printf("%dn",x); else printf("%dn",y);B.if(a==0) printf("%dn",y); else printf("%dn",x);C.if(a!=0) printf("%dn",x); else printf("%dn",y);D.if(a==0) printf("%dn",x); else printf("%dn",y);

考题 下列条件语句中,输出结果与其他语句不同的是()A.if (a!=0 ) printf("%dn", x); else printf("%dn", y);B.if (a==0 ) printf("%dn", y); else printf("%dn", x);C.if (a==0 ) printf("%dn", x); else printf("%dn", y);D.if (a ) printf("%dn", x); else printf("%dn", y);

考题 以下if语句语法正确的是 ()A.if (x>0) printf(“%f”,x) else printf(“%f”, -x);B.if (x>0) { x=x+y; printf(“%f”,x); } else printf(“%f”, -x);C.if (x>0) { x=x+y; printf(“%f”,x); }; else printf(“%f”, -x);D.if (x>0) { x=x+y; printf(“%f”,x) } else printf(“%f”, -x);

考题 【单选题】以下不正确的语句为()。A.if (x>y);B.if (x=y)(x!=0) x+=y;C.if (x) z=z/x;D.if (x>y) {x++;y++;}

考题 以下为不正确的if语句的是A.if(x<y);B.if(x!=y) printf("x=%d",x); else(x==y) printf("y=%d",y);C.if(x==y) x+=y;D.if(x<y) {x++;y++;}