题型:综合题 题类:模拟题 难易度:普通
浙江省杭州市五县七校2017届高三上学期期中联考信息技术试题
Dim a(1 To 100) As Single '依次存储100个学生成绩
Const n = 100
Private Sub Form_Load()
'本过程从数据库中读取1到100号学生成绩,并存储在数组a中
'代码略
End Sub
Private Sub Command1_Click()
Dim i As Integer, max As single
max = ①
For i = 2 To n
if ②
Next i
Text1.Text = "成绩最高分是:" + Str(max)
End Sub
S=0 :T=1 For i=1 to 100 S=s+i*T T=-T Next i
| S=0 For i=1 to 100 S=s+i*(-1)^(i+1) Next i
| S=0 For i=1 to 100 S=s+i*(-1)^i Next i
| S=0:S1=0:S2=0 For i=1 to 50 S1=s1+2*i-1 S2=s2+2*i Next i S=s1-s2 ④ |
试题篮