VB编写程序,在窗体上输出如图所示的图形
展开全部
Private Sub Command1_Click()
Dim i, j As Integer
For i = 1 To 9 Step 2
Print Spc(3 + i);
For j = 10 - i To 1 Step -1
Print "* ";
Next
Print " ";
For j = 1 To i
Print "* ";
Next
Print
Next
End Sub
Dim i, j As Integer
For i = 1 To 9 Step 2
Print Spc(3 + i);
For j = 10 - i To 1 Step -1
Print "* ";
Next
Print " ";
For j = 1 To i
Print "* ";
Next
Next
End Sub
本回答被网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询