3个回答
展开全部
Dim i As Integer
For i = 1 To 11
Print Space(Abs(6 - i));
Print String((5 - Abs(6 - i)) * 2 + 1, "X")
Next
XP+VB6运行通过!!
For i = 1 To 11
Print Space(Abs(6 - i));
Print String((5 - Abs(6 - i)) * 2 + 1, "X")
Next
XP+VB6运行通过!!
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
For i = -5 To 5
Print Tab(Abs(i) + 1);
For j = Abs(i) - 5 To 5 - Abs(i)
Print "*";
Next j
Print
Next i
如果是×
For i = -5 To 5
Print Tab((Abs(i) + 1)*2);
For j = Abs(i) - 5 To 5 - Abs(i)
Print "×";
Next j
Print
Next i
Print Tab(Abs(i) + 1);
For j = Abs(i) - 5 To 5 - Abs(i)
Print "*";
Next j
Next i
如果是×
For i = -5 To 5
Print Tab((Abs(i) + 1)*2);
For j = Abs(i) - 5 To 5 - Abs(i)
Print "×";
Next j
Next i
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
Dim R(1 To 11) As String, i As Integer
R(1) = Space(5) + "X"
For i = 2 To 6
R(i) = Space(6 - i) + "X" + Space(2 * i - 3) + "X"
Next i
For i = 7 To 11
R(i) = R(12 - i)
Next i
For i = 1 To 11
Print R(i)
Next i
R(1) = Space(5) + "X"
For i = 2 To 6
R(i) = Space(6 - i) + "X" + Space(2 * i - 3) + "X"
Next i
For i = 7 To 11
R(i) = R(12 - i)
Next i
For i = 1 To 11
Print R(i)
Next i
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询