【vf程序设计题 求1到100间能同时被2和3整除的数的和】

发布时间:2021-03-17 03:04:58

vf程序设计题 求1到100间能同时被2和3整除的数的和 

网友回答

set talk off
s=0for i=1 to 50
if i%2=0 .or.i%3=0
s=s+ii && 显示能被2或3整除的数
endifendfor
s=,s && 显示最后结论
use newtable6
repl 结论 with s
useset talk on
以上问题属网友观点,不代表本站立场,仅供参考!