• 2022-06-09
    选择出合法的if语句(设intx,y;)()。
    A: if(x!=y)if(x>y)printf("x>y\n"); else printf("x<y\n"); elseprintf("x==y\n");
    B: if(x!=y) if(x>y)printf("x>y\n") else printf("x<y\n"); else printf("x==y\n");
    C: if(x!=y)if(x>y)printf("x>y\n"); else printf("x<y\n") else printf("x==y\n");
    D: if(x!=y) if(x>y) printf("x>y\n"); else printf("x<y\n") else printf("x= =y\n");
  • 举一反三