帮写段简单的vfp程序要求:程序名称为program42.prg,放在d:\exam4目录下,并将程

发布时间:2021-03-04 22:29:59

帮写段简单的vfp程序要求:程序名称为program42.prg,放在d:\exam4目录下,并将程

网友回答

居然还有人要学VFP?
set defa to d:\exam4
modi m program42
在里面写上 local lnResult, lnCount
lnResult = 0
for lnCount = 1 to 20
lnResult = lnResult + (20 - lnCount + 1 )*lnCount
endfor
messagebox(str(lnResult))
return
运行得出结果.
楼下VB的,结果是1540
以上问题属网友观点,不代表本站立场,仅供参考!