• 2022-05-29
    以下语法正确的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);