要求给r输入数据后计算半径为r的圆面积s。该程序有错误,错误在于( )。 #include "stdio.h " int main() { int r; float PI, s ; PI=3.14; scanf("%d", r); /* 读入半径r */ s=PI*r*r ; printf("s=%f\n, s ") ; return 0; }
A. 程序中出现汉字
B. 2
C. 所编写的scanf语句无法通过编译
D. 1
E. printf语句无法通过编译
F. 3.0
G. scanf语句无法正确输入r的值,printf语句的格式用法上也存在问题 x=50,y=100;”,则表达式10+x/y的值为_________。 10 若int a,b; 已定义, 想为a和b输入整型数据,以下五条语句中正确的有______A__条。( 第一条:scanf("%d%d", a,b); 第二条: scanf("%d%d, &a,&b“); 第三条:scanf("%d,%d”, &a,&b); 第四条: scanf("%d”, &a,&b); 第五条: scanf("%d%d”, &a,&b);
H. 4.0
以下程序的输出结果是______ 。 fun(int x, int y) { int t; t=x;x=y;y=t; } main______ {int a=3,b=5; fun(a,b); printf("%d%d",a,b); }
以下程序是对用户输入的字母进行大小写转换。下划线1处和下划线2处填写内容应该分别是(______ )和(______ )。 #include "stdio.h" main() {char ch;printf("input a letter:\n"); scanf("%c",&ch); if (ch>='A'__1__ch<='Z') ch=ch+32; else if (ch>=97__2__ch<=97+25) ch=ch-32; printf(" the converted letter is: %c\n",ch); }
1&2 What TWO advantages does the speakers say Rexford University has for the students he is speaking to?
A. higher than average results examinations
B. good transport links with central London
C. near London Airport
D. special government funding
E. good links with local industry