Private Sub Command1_Click()Dim ll As Integer '输入数字长度Dim zz As Double '中间计算值Dim nn As Integer '位数字tt = Text1.Textsl:ll = Len(tt)If ll > 1 Then zz = 0 For i = 1 To ll
nn = Mid(tt, i, 1) zz = zz + nn Next i
tt = zz GoTo sl End If
Text2.Text = ttEnd Sub
呵呵,楼上的是正确的!这好象是 vb二级考试的上机试题哦!!不知道对不对?
三克油。。。。。。