期待性焦虑名词解释:(用foxpro)怎么计算1000以内个位数字为7的自然数的和,并输出结果
来源:百度文库 编辑:神马品牌网 时间:2024/05/11 17:52:50
谢谢各位,明天要交了
set talk off
s=0
for a= 1 to 1000 step 1
if a%10=7
s= s+a
endif
endfor
?s
set talk on
i=7
k=1
do while k<=3
i=i+10^k
enddo
?"和为:"
??i