• 2022-06-10
    如下程序片段功能是将任意输入的三个整数a,b,c,按从小到大的顺序输出;则划线处需要填写_________.inta,b,c,t;printf("输入三个整数:");scanf("%d%d%d",&a,&b,&c);if(______){t=a;a=b;b=t;}if(______){t=a;a=c;c=t;}if(______){t=b;b=c;c=t;}printf("三个整数从小到大顺序是:%d%d%d",a,b,c);
    A: a>b       a>c       b>c
    B: a>=b     a>=c     b>=c
    C: a
    D: a<=b     a<=c     b<=c
  • 举一反三