求答案VB使用print方法,输出如下图形
3个回答
展开全部
Private Sub Form_Click()
For i = 1 To 5
Print Tab(12 - 2 * i);
For j = 1 To 10 + 2 * i - 1
If j >= 2 * i And j <= 10 Then
Print "☆";
Else
Print "★";
End If
Next j
Next i
End Sub
For i = 1 To 5
Print Tab(12 - 2 * i);
For j = 1 To 10 + 2 * i - 1
If j >= 2 * i And j <= 10 Then
Print "☆";
Else
Print "★";
End If
Next j
Next i
End Sub
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
Private Sub Command1_Click()
For i = 1 To 5
Print Spc(2 * (7 - i));
Print String(2 * (i - 1) + 1, "★");
print String(2 * (5 - i) + 1, "☆");
Print String(2 * (i - 1) + 1, "★")
Next
End Sub
For i = 1 To 5
Print Spc(2 * (7 - i));
Print String(2 * (i - 1) + 1, "★");
print String(2 * (5 - i) + 1, "☆");
Print String(2 * (i - 1) + 1, "★")
Next
End Sub
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询