问题标题:
试用VB程序语言写出主要程序段:求S=1+3+5+7+……+999的值
问题描述:
试用VB程序语言写出主要程序段:求S=1+3+5+7+……+999的值
曲维光回答:
subtest()
dimiasinteger,resaslong
fori=1to999step2
res=res+i
nexti
printres
endsub
点击显示
其它推荐
热门其它推荐