vb 求3+6+9+……+300 考试急
答案:2 悬赏:70 手机版
解决时间 2021-04-02 16:34
- 提问者网友:难遇难求
- 2021-04-02 02:27
vb 求3+6+9+……+300 考试急
最佳答案
- 五星知识达人网友:杯酒困英雄
- 2021-04-02 03:50
dim sum as long
sum=0
dim i
for i = 3 to 300 step 3
sum=sum+i
next
print sum
sum=0
dim i
for i = 3 to 300 step 3
sum=sum+i
next
print sum
全部回答
- 1楼网友:雾月
- 2021-04-02 04:31
Dim sum As Long
sum = 0
For i = 1 To 100
sum = sum + 3 * i
Next
Print sum
sum = 0
For i = 1 To 100
sum = sum + 3 * i
Next
Print sum
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯