输入一个华氏温度,要求输出摄氏温度。计算公式为: c=5/9(F-32),以下程序正确的是()
A.
B. includevoid main(){ float c,F; scanf("%f,%f",&c,&F); c=5/9*(F-32); printf("摄氏温度是:%f\n",c);}
C. B.
D. includevoid main(){ float c,F; scanf("%f,%f",&c,&F); c=5*(F-32)/9; printf("摄氏温度是:%f\n",c); }
E. C.
F. includevoid main(){ float c,F; scanf("%f,%f",&c,&F); c=5%9*(F-32); printf("摄氏温度是:%f\n",c); }
G. D.
H. includevoid main(){ float c,F; scanf("%f,%f",&c,&F); c=5.0/9.0(F-32); printf("摄氏温度是:%f\n",c); }
有以下程序#includevoid main(){int a=2,b=2,c=2;printf("%d\n",a/b&c);}程序运行后的输出结果是()
A. 0
B. 1
C. 2
D. 3
有以下程序:#include{int a=1,b=0;printf("%d,",b=a+b);printf("%d\n",a=2*b);}程序运行后的输出结果是________。
A. 0,0
B. 1,0
C. 3,2
D. 1,2