如图,用VB编写程序,求大佬帮忙!!!
1个回答
展开全部
第一题:
Dim i As Integer
Dim n As Integer
Dim SUM As Integer
SUM = 0
n = 0
For i = 100 To 200
If i Mod 5 = 0 And i Mod 3 <> 0 Then
Print i,
SUM = SUM + i
n = n + 1
If n Mod 5 = 0 Then Print
End If
Next i
Print "SUM="; SUM
第二题:
Dim s As Double
Dim i As Integer
Dim fz As Integer
Dim fm As Integer
fz = 2
fm = 1
s = 0
For i = 1 To 10
s = s + fz / fm
fz = fz + fm
fm = fz - fm
Next i
Print s
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询