请VB高手帮我填一下题目中的三个空,打得好我有追加悬赏。急啊!!!!!!
'下面的程序段用于打印出以下图形''*'***'*****'*******'*****'***'*'PrivateSubForm_Click()Dimi%,j%,k%Fo...
'下面的程序段用于打印出以下图形
'
' *
' ***
' *****
' *******
' *****
' ***
' *
'
Private Sub Form_Click()
Dim i%, j%, k%
For i = 0 To 3
For j = 0 To 2 - i
Print " ";
Next j
'**********SPACE**********
For k = 1 To【?】
Print "*";
Next k
Print
Next i
For i = 0 To 2
For j = 0 To i
'**********SPACE**********
【?】
Next j
For k = 0 To 4 - 2 * i
Print "*";
Next k
'**********SPACE**********
【?】
Next i
End Sub 展开
'
' *
' ***
' *****
' *******
' *****
' ***
' *
'
Private Sub Form_Click()
Dim i%, j%, k%
For i = 0 To 3
For j = 0 To 2 - i
Print " ";
Next j
'**********SPACE**********
For k = 1 To【?】
Print "*";
Next k
Next i
For i = 0 To 2
For j = 0 To i
'**********SPACE**********
【?】
Next j
For k = 0 To 4 - 2 * i
Print "*";
Next k
'**********SPACE**********
【?】
Next i
End Sub 展开
2个回答
展开全部
'下面的程序段用于打印出以下图形
'
' *
' ***
' *****
' *******
' *****
' ***
' *
'
Private Sub Form_Click()
Dim i%, j%, k%
For i = 0 To 3
For j = 0 To 2 - i
Print " ";
Next j
'**********SPACE**********
For k = 1 To 2 * i + 1
Print "*";
Next k
Print
Next i
For i = 0 To 2
For j = 0 To i
'**********SPACE**********
Print " ";
Next j
For k = 0 To 4 - 2 * i
Print "*";
Next k
'**********SPACE**********
Print
Next i
End Sub
'
' *
' ***
' *****
' *******
' *****
' ***
' *
'
Private Sub Form_Click()
Dim i%, j%, k%
For i = 0 To 3
For j = 0 To 2 - i
Print " ";
Next j
'**********SPACE**********
For k = 1 To 2 * i + 1
Print "*";
Next k
Next i
For i = 0 To 2
For j = 0 To i
'**********SPACE**********
Print " ";
Next j
For k = 0 To 4 - 2 * i
Print "*";
Next k
'**********SPACE**********
Next i
End Sub
追问
k的作用?快!!!
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询