听力原文:What do many office workers dream of doing?
What do some office workers dream of doing?
They dream of working their way up ______.
查看答案
有如下程序,该程序的执行结果是【 】。
Private Sub Command1 Click()
For i=1 To 4
x=4
For j=1 To i
x =3
For k=1 To 2
x= x + 5
Next k
Next j
Next i
Print x
End Sub
有以下程序
inculde <stdio.h>
main()
{ int a=1,B=2,c=3,d=0;
iF(a==1)
iF(B!=2)
iF(c==3) d=1;
else d=2;
else iF(c!=3) d=3;
else d=4;
else d=5;
printF(“%d\n”,d);
}
程序远行后的输出结果是【 】。
以下程序用以删除字符串中所有的空格,请填空。
inculde <stdio.h>
main()
{ char s[100]=(“our teacher teach c language!”);int I,j;
For(i=j=0;s[i]!=’’)
iF(s[i];s[i]!=’\0’) {s[j]=s[i];j ++}
s[j]=【 】
printF(“index=%d\n”,s-a);
}
阅读以下函数说明和C语言函数,将应填入(n)处的字句写在对应栏内。
【说明】
编写程序,对于从键盘输入的3个实数a、b、c,计算实系数一元二次方程的根并输出所求的根。
【函数】
include<sldio.h>
include<sldlib.h>
include<math.h>
Main()
{
float a,b,c,delta,x1,x2;
printf("Enter a,b,c");
scanf("%f%f%f",&a,&b,&c));
if((1))
if((2))
printf("Input error!\n");
else
printf("The single root is%f\n",(3));
else
{
delta=b*b-4*a*c;
if((4))
{
x1=(-b+sqrt(delta))/(2*a);
x2=(-b-sqrt(delta))/(2*a);
printf("x1=%8.2f\nx2=%8.2f\n",x1,x2,);
}
else if(delta==0)
printf("x1=x2=%8.2f\n",(5);
else
{
Printf("z2=%8.2f+%8.2f*i\n",-b/(2*a),sqrt(-delta)/)(2*abs(a)));
Printf("z2=%8.2f-%8.2f*i\n",-b/(2*a),sqrt(-delta)/(2*abs(a)));
}
}
}