3个回答
展开全部
给你一个示例你参考一下
Private Sub Command1_Click()
Dim i As Integer
Dim j As Integer
Dim jc As Long, he As Long
he = 0
For i = 1 To 10
jc = 1
For j = 1 To i
jc = jc * j
Next j
he = he + jc
Next i
Print he
End Sub
Private Sub Command1_Click()
Dim i As Integer
Dim j As Integer
Dim jc As Long, he As Long
he = 0
For i = 1 To 10
jc = 1
For j = 1 To i
jc = jc * j
Next j
he = he + jc
Next i
Print he
End Sub
追问
能给我确切答案吗?这个参考不了
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
dim i as integer, x1 as long, x2 as long
x1=1
for i=1 to 15 step 5
for j=1 to i
x1=x1*j
next
x2=x2+x1
x1=1
next
print x2
x1=1
for i=1 to 15 step 5
for j=1 to i
x1=x1*j
next
x2=x2+x1
x1=1
next
print x2
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询