vb怎么输出这样的图形?
1个回答
展开全部
Private Sub Command1_Click()
Dim i As Integer, j As Integer, k As Integer
For i = 0 To 10
k = IIf(i > 5, 10 - i, i)
Print Tab(11 - 2 * k);
For j = k To 0 Step -1
Print j & " ";
Next j
For j = 1 To k
Print j & " ";
Next
Next i
End Sub
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询