求答案 VB使用print方法,输出如下图形
2个回答
展开全部
Private Sub Command1_Click()
Const s1 As String = "★"
Const s2 As String = " "
Dim i As Long, j As Long
For i = 0 To 4
For j = 0 To 5 - i
Print s2;
Next j
For j = 0 To 2 * i
Print s1;
Next j
For j = 0 To (4 - i) * 2
Print s2;
Next j
For j = 0 To 2 * i
Print s1;
Next j
Next i
End Sub
望采纳,谢谢。
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询