vb做!!急急急急
2个回答
展开全部
左图:
Dim n As Integer
n = Val(InputBox("输入一个不大于50的正整数!"))
Dim i As Integer
Dim j As Integer
Me.Cls
For i = 1 To n
For j = 1 To i
Print "*";
Next j
For j = 1 To 2 * (n - i)
Print " ";
Next j
For j = 1 To i
Print "*";
Next j
Print
Next i
右图:
Dim n As Integer
n = Val(InputBox("输入一个不大于50的正整数!"))
Dim i As Integer
Dim j As Integer
Me.Cls
For i = 1 To n
For j = 1 To i
Print "* ";
Next j
For j = 1 To 2 * (n - i)
Print " ";
Next j
For j = 1 To i
Print "* ";
Next j
Print
Next i
Dim n As Integer
n = Val(InputBox("输入一个不大于50的正整数!"))
Dim i As Integer
Dim j As Integer
Me.Cls
For i = 1 To n
For j = 1 To i
Print "*";
Next j
For j = 1 To 2 * (n - i)
Print " ";
Next j
For j = 1 To i
Print "*";
Next j
Next i
右图:
Dim n As Integer
n = Val(InputBox("输入一个不大于50的正整数!"))
Dim i As Integer
Dim j As Integer
Me.Cls
For i = 1 To n
For j = 1 To i
Print "* ";
Next j
For j = 1 To 2 * (n - i)
Print " ";
Next j
For j = 1 To i
Print "* ";
Next j
Next i
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询