发布网友 发布时间:2023-09-16 20:22
共3个回答
热心网友 时间:2024-11-23 12:18
我就不写代码了,累人,给你分析下吧热心网友 时间:2024-11-23 12:18
Dim n As Integer热心网友 时间:2024-11-23 12:19
追问亲,有编程的过程吗?追答Private Sub Command1_Click()
Dim i As Integer, j As Integer
Dim s As String
For i = 1 To 7
Print Spc(4 - i);
s = ""
If i <= 4 Then
For j = 1 To 2 * i - 1
s = s & i
Next
Print s
Else
Print Spc(i - 4);
For j = 5 To (i - 4) * 2 - 1 Step -1
s = s & 8 - i
Next
Print s
End If
Next
End Sub