用VFP编写程序计算1_100之间能被3整除的数的和

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/28 01:03:43

用VFP编写程序计算1_100之间能被3整除的数的和

s=0
for i=1 to 100
if i%3=0
s=s+i
endif
endfor