![](https://lstatic.shangxueba.com/jiandati/pc/images/pc_jdt_tittleico.png)
以下程序的功能是,从键盘上输入若干数据,统计并输出最大值和最小值,当输入负数时结束输入,请填空
![](https://lstatic.shangxueba.com/jiandati/pc/images/jdt_panel_vip.png)
Private Sub Form_Click()
Dim x,y As Single
Dim z As Integer
x=InputBox("Enter a score")
Do while【 】
y=y+x
z=z+1
x=InputBox("Enter a score")
Loop
If z=0 Then
z=1
End If
y=y/z
MsgoBox y
End Sub
Private Sub Command1_C1iek()
Dim x As Single
Dim amax As Single,amln As Single
x=InputBox("请输入分数")
amax=x
amin=x
Do While【 】
If x>amax Then
amax=x
End If
If【 】Then
amin=x
End If
x=InputBox("请输入分数")
Loop
Print amax,amin
End Sub
A.else amin=x;
B.if (x <amin) amin="x;<br/">
C.if (x>amin) amin=x;
D.else x=amin;
A.x >= 0
B.x <=>
C.x > 0
D.x < 0
A.从键盘上输入6,按回车显示的结果是6
B.从键盘上输入的6是字符串数据类型,通过int命令将其转换成了整数型
C.变量a里面存储的是整数型数据
D.变量a里面存储的是字符串数据
以下程序的功能是从键盘上输入一行字符,存入一个字符数组中,然后输出该字符串。请填空。 main() { char str[81],*sptr; int i; for(i=0;i<80;i++) { str[i]=getchar(); if(str[i]==\n)break; } str[i]=【 】; sptr=str1 while(* sptr)putchar(* sptr【 】); }
A.str[i]=0
B.str[i-1]='0'
C.str[i]=’0‘
D.str[i-1]=0
为了保护您的账号安全,请在“简答题”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!