设有说明语句“int a=1,b=0;”,则执行以下语句后,输出为()。switch(a){case 1:switch(b){case 0:printf(”**0**”);break;case 1:printf(”**1**”);break;}case 2:printf(”**2**”);break;}
A. **0**
B. **0****2**
C. **0****1****2**
D. 有语法错误
输入一个华氏温度,要求输出摄氏温度。计算公式为: 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); }