Dim n%, s&
n = Val(Text1)
If n <1 Or n >20 Then
Text1 = ""穗卜
Text2 = ""
MsgBox "请重新输入n值!猜仔穗"
Else
For i = 1 To n
For j = 1 To i
s = s + j
Next j
Next i
Text2 = s
End If
End Sub
Private Sub Form_Load()
Text1 = "戚态"
Text2 = ""
End Sub
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)