急求vfp中有关数学计算的编程!(1)求2+1!+3+2!+4+3!+...+11+10!的和(2)求y=(1+2!)/(2*3)+(2+3!)/(3*4)+(3+4!)/(4*5)+...+(10+11!)/(11*12)的和

问题描述:

急求vfp中有关数学计算的编程!
(1)求2+1!+3+2!+4+3!+...+11+10!的和
(2)求y=(1+2!)/(2*3)+(2+3!)/(3*4)+(3+4!)/(4*5)+...+(10+11!)/(11*12)的和

(1)
for a=1 to 10
for i=a to 1` step -1
y=y+a
next i
y=y+a+1
next a