求用VB打星号,急!!!

求用VB打星号,急!!!,第1张

Private Sub Command1_Click()

Dim n,i,j

n = 4 '你悔派想要几行就几行

For i = 1 To n

For j = 1 To n - Abs(i - 2) - 2

Print Space(1)

Next

Print "闭丛*"碧态贺

For j = 1 To 2 * Abs(i - 2) - 1

Print Space(1)

Next

If i <>2 Then Print "*"

Print

Next

End Sub

Private Sub Command1_Click()

Dim i As Integer, j As Integer

For i = 1 To 10

For j = 1 To i

Print "*"

Next

Print

Next

End Sub


欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/yw/12555616.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-05-26
下一篇 2023-05-26

发表评论

登录后才能评论

评论列表(0条)

保存