帮我看看这段求和代码是否正确
求100~200之间所有能被3整除的数之和。我编的代码如下:Int i,sum
sum=0
For i = 100 to 200
if Mod(i,3)=0 then
sum=sum+i
Next
2007-04-01 10:56
2007-04-01 11:01
2007-04-01 11:32
所以说,你现在连PB的门还没摸进来,但看的代码却有一定难度,你还是快点摸门进来吧。象你上面验证代码的程序就是建一个窗口,放一个按钮,在按钮的单击事件上写代码,用MESSAGEBOX连显示结果。

2007-04-01 15:45
2007-04-01 16:07
少寫一個end if
Int i,sum
sum=0
For i = 100 to 200
if Mod(i,3)=0 then
sum=sum+i
end if
Next

2007-04-02 08:52
2007-04-02 09:49
2007-04-02 09:53
2007-04-02 10:04
2007-04-02 10:35