题型:综合题 题类:常考题 难易度:困难
浙江省台州中学2016-2017学年高二上学期第一次统练技术试卷(信息技术部分)
图1 图2
Private Sub Command1_Click()
Dim x1 As Integer,x2 As Integer,n As Integer
Dim sum As Long
x1=Val(Text1.Text)
x2=Val(Text2.Text)
sum=0
If x1<x2 Then n=1 Else
For i= x1 To x2 Step n
If Then
sum=sum+i
Next i
Label3.Caption=Str(sum)
End Sub
试题篮