2013-04-17
展开全部
用Line控件…调整坐标…可变成三角形
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
2013-04-17
展开全部
Private Sub Command1_Click()
Dim i As Integer
Dim j As Integer
Dim n As Integer
Dim s As String
n = 5
For i = 1 To n
For j = 1 To i
s = CStr((i - 1) * 5 + j)
s = s + Space$(3 - Len(s))
Print s;
Next j
Print
Next i
End Sub 或Private Sub Command1_Click()
Dim a, b, c As Integer
For a = 1 To 100
For b = 1 To 100
For c = 1 To 100
If a ^ 2 + b ^ 2 = c ^ 2 Then
Print "a="; a; "b="; b; "c="; c
End If
Next c
Next b
Next a
End Sub
Dim i As Integer
Dim j As Integer
Dim n As Integer
Dim s As String
n = 5
For i = 1 To n
For j = 1 To i
s = CStr((i - 1) * 5 + j)
s = s + Space$(3 - Len(s))
Print s;
Next j
Next i
End Sub 或Private Sub Command1_Click()
Dim a, b, c As Integer
For a = 1 To 100
For b = 1 To 100
For c = 1 To 100
If a ^ 2 + b ^ 2 = c ^ 2 Then
Print "a="; a; "b="; b; "c="; c
End If
Next c
Next b
Next a
End Sub
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
2013-04-17
展开全部
Option Explicit
Const N = 5 '5行
Private Sub Form_Activate() '42
Dim i As Integer, j As Integer
For i = 1 To N
Print Space(N - i);
For j = 1 To i
Print Chr(42);
Next
Print
Next
End Sub
Const N = 5 '5行
Private Sub Form_Activate() '42
Dim i As Integer, j As Integer
For i = 1 To N
Print Space(N - i);
For j = 1 To i
Print Chr(42);
Next
Next
End Sub
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
2013-04-17
展开全部
Private Sub Command1_Click()
s = "*************"
For i = 1 To 13
a = Left(s, i)
b = Space(13 - i)
Print b + a
Next i
End Sub
s = "*************"
For i = 1 To 13
a = Left(s, i)
b = Space(13 - i)
Print b + a
Next i
End Sub
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
for i= 1 to 9
for j= 1 to i
print " * ";
next
print
next
for j= 1 to i
print " * ";
next
next
本回答被网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询