#include main(){ float a,b,c,t;a=3;b=7;c=1;if(a>b){t=a;a=b;b=t;}if(a>c){t=a;a=c;c=t;}if(b>c){t=b;b=c;c=t;}printf("%5.2f,%5.2f,%5.2f",a,b,c);}运行结果为:
A. 2.00, 1.00, 7.00
B. 1.00, 2.00, 7.00
C. 7.00, 2.00, 1.00
D. 1, 2, 7
程序段“int x=10,y=20,t=0; if(x
A. 10,10
B. 20,20
C. 20,10
D. 10,20
下面程序段的输出结果是。inta=1,b=2,c=3;if(a==c)printf(”%d \n”,c);else printf(”%d\n”,b);
A. 2
B. 3
C. 4
D. 5