• 2022-05-29
    以下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);