2个回答
2013-05-16
展开全部
是不是棱形的? Private Sub form_Click()
Dim I As Integer, J As Integer
For I = 1 To 4
For J = 1 To 4 - I
Print " ";
Next
For J = 1 To 2 * I - 1
Print "*";
Next
Print
NextFor I = 3 To 1 Step -1
For J = 1 To 4 - I
Print " ";
Next
For J = 1 To 2 * I - 1
Print "*";
Next
Print
NextEnd Sub
Dim I As Integer, J As Integer
For I = 1 To 4
For J = 1 To 4 - I
Print " ";
Next
For J = 1 To 2 * I - 1
Print "*";
Next
NextFor I = 3 To 1 Step -1
For J = 1 To 4 - I
Print " ";
Next
For J = 1 To 2 * I - 1
Print "*";
Next
NextEnd Sub
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询