有程序:#include main(){int a,b;float x, y,z;char c1,c2;scanf("%5d%5d%c%c%f%f %*f, %f ",&a,&b,&c1,&c2,&x, &y,&z);printf ( );}若使程序输出的结果:a=10,b=20,c1='A ', c2='a ', x= 1.50,y= -3.75,z = 67.80请给出正确的输入,并填充好printf().
A. 1020Aa 1.5 -3.75 2.5, 67.8
B. 1020 A a 1.5 -3.75 2.5, 67.8
C. printf(" a=%d,b=%d,c1=%c, c2=%c,x=%6.2f,y=%6.2f,z=%6.2f ",a,b,x,y,c1,c2);
D. printf(" a=%d,b=%d,c1=%c, c2=%c,x=%f,y=%f, z=%f ",a,b,x,y,c1,c2);
有程序:#include main(){int a,b;float x, y;char c1,c2;scanf("a=%d b=%d",&a,&b);scanf("%f %e ",&x, &y);scanf("%c %c",&c1,&c2);printf ( );}若使程序输出的结果:a=3,b=7,x=8.5,y=71.82,c1='A ',c2='a '请给出正确的输入,并填充好printf()。
A. a=3b=7 8.5 71.82A a
B. a=3b =7 8.5 71.82 A a
C. printf(" a=%d,b=%d,x=%f,y=%f, c1=%c, c2=%c",a,b,x,y,c1,c2);
D. printf(" a=%d,b=%d,x=%.1f,y=%.2f, c1=%c, c2=%c",a,b,x,y,c1,c2);