以下if语句语法正确的是()
A: if(x>0) printf("%f",x)elseprintf("%f",-x);
B: if(x>0){x++;printf("%f",x);}elseprintf("%f",-x);
C: if(x>0){x++;printf("%f",x);};elseprintf("%f",-x);
D: if(x>0){x++;printf("%f",x)}elseprintf("%f",-x);
A: if(x>0) printf("%f",x)elseprintf("%f",-x);
B: if(x>0){x++;printf("%f",x);}elseprintf("%f",-x);
C: if(x>0){x++;printf("%f",x);};elseprintf("%f",-x);
D: if(x>0){x++;printf("%f",x)}elseprintf("%f",-x);
举一反三
- 以下if语句语法正确的是() A: if(x>0) printf("%f",x)<br>else printf("%f",-x); B: if(x>0){x++;printf("%f",x);}<br>else printf("%f",-x); C: if(x>0){x++;printf("%f",x);};<br>else printf("%f",-x); D: if(x>0){x++;printf("%f",x)}<br>else printf("%f",-x);
- 以下if语句语法正确的是 A: if(x>0)printf("%f",x)elseprintf("%f",-x); B: if(x>0){x=x+y;printf("%f",x);}elseprintf("%f",-x); C: if(x>0){x=x+y;printf("%f",x);};elseprintf("%f",-x); D: if(x>0){x=x+y;printf("%f",x)}elseprintf("%f",-x);
- 以下语法正确的if语句是_____________。 A: A.if(x>0)printf(“%f”,x)elseprintf(“%f”,-x); B: B.if(x>0){x=x+y;printf(“%f”,x);}elseprintf(“%f”,-x); C: C.if(x>0){x=x+y;printf(“%f”,x);};elseprintf(“%f”,-x) D: D.if(x>0){x=x+y;printf(“%f”,x)}elseprintf(“%f”,-x);
- 以下if语句语法正确的是_____。 A: if(x>;0){ x=x+y; printf(“%f”,x )}elseprintf("%f", -x) ; B: if (x>;0){x=x+y; printf(”%f”,x); }elseprintf(“%f”,-x) ; C: if (x>;0)printf(“%f”,x)else (x;0){ x=x+y; printf("%f",x); } ;else printf(“%f”, -x) ;
- 以下if语句语法正确的是() A: if(x>0)printf(“%f”,x)else printf(“%f”,-x); B: if(x>0){ printf(“%f”,x); }else printf(“%f”,-x); C: if(x>0);{ printf(“%f”,x); }else printf(“%f”,-x); D: if(x>0){ printf(“%f”,x) }else printf(“%f”,-x);