• 2022-06-03
    下面两条if语句合并成一条if语句为( )。 if(a<=b) x=1; else y=2; if(a>b) printf("**y=%d\n",y); else printf("##x=%d\n",x);
    A: if(a<=b){ x=1; printf("
    B:
    C: x=%d\n",x); } else{ y=2; printf("**y=%d\n",y); }
    D: if(a<=b) x=1; printf("
    E:
    F: x=%d\n",x); else y=2; printf("**y=%d\n",y);
    G: if(a<=b){ x=1; printf("**y=%d\n",y); } else{ y=2; printf("
    H:
    I: x=%d\n",x); }
    J: if(a>b){ x=1; printf("
    K:
    L: x=%d\n",x); } else{ y=2; printf("**y=%d\n",y); }
  • 举一反三