5个回答
展开全部
p = 1
h = 0
For s = 1 To 10
For ss = 1 To s
p = p * ss
Next ss
h = h + p
p = 1
Next s
Text1.Text = h
已经通过VB+6.0
h = 0
For s = 1 To 10
For ss = 1 To s
p = p * ss
Next ss
h = h + p
p = 1
Next s
Text1.Text = h
已经通过VB+6.0
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
开头你自己写
中间过程是这样的!
int s,sum;
s=0;sum=0;
for i=1 to 10
for j=i+1 to 10
s=j*i;
next j;
end;
sum=s+sum;
next i;
end;
中间过程是这样的!
int s,sum;
s=0;sum=0;
for i=1 to 10
for j=i+1 to 10
s=j*i;
next j;
end;
sum=s+sum;
next i;
end;
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
a = 1
For i = 1 To 10
a = a * i
s = s + a
Next i
Label1.Caption = s
For i = 1 To 10
a = a * i
s = s + a
Next i
Label1.Caption = s
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
Private Sub Command1_Click()
Dim Resault As Double
Dim i As Integer
For i = 1 To 10
Resault = Resault + Cal(i)
Next
End Sub
Public Function Cal(Num) As Double
Dim i As Integer
Dim R As Double
R = 1
For i = 1 To Num
R = R * i
Next
Cal = R
End Function
Dim Resault As Double
Dim i As Integer
For i = 1 To 10
Resault = Resault + Cal(i)
Next
End Sub
Public Function Cal(Num) As Double
Dim i As Integer
Dim R As Double
R = 1
For i = 1 To Num
R = R * i
Next
Cal = R
End Function
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
!的意思是?
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询