1个回答
展开全部
Private Sub Command1_Click()
Const N = 4 '打印4行
For i = 1 To N
Print Tab(N - i + 1);
For j = 1 To 2 * i - 1
If j <= i Then
Print j & "";
Else
Print 2 * i - j & "";
End If
Next j
Next i
End Sub
Private Sub Command2_Click()
Const N = 4 '打印4行
For i = 1 To N
Print Tab(N - i + 1);
For j = 1 To 2 * i - 1
Print Chr(Asc("A") + i - 1);
Next j
Next i
End Sub
Private Sub Command3_Click()
Const N = 4 '打印4行
stri = "+*"
For i = 1 To N
Print Tab(N - i + 1);
For j = 1 To 2 * i - 1
Print Mid(stri, j Mod 2 + 1, 1);
Next j
Next i
End Sub
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询