VB题目,求大佬解
2个回答
展开全部
Private Sub Form_Click()
Dim j As Long, i As Long, t As String, t1 As String, t2 As String, s As String
Me.Cls
t = "9 "
t2 = Space(8)
s = t2 & t1 & t & t1 & t2
Me.Print s
For j = 1 To 4
t1 = 9 - j & " "
t2 = Space(8 - j * 2)
s = t2 & t1 & t & t1 & t2
t = t1 & t & t1
Me.Print s
Next
For j = 1 To 4
t1 = Mid(t, j * 2 + 1, Len(t) - j * 4)
t2 = Space(j * 2)
s = t2 & t1
Me.Print s
Next
End Sub
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询