y=0 ]xIfgSq
declare X, double, 1,10 p@7[w@B\c
=
A !;`G
X(1)=(5) 1y5$
X(2)=(-6) ;hLne0|)}
X(3)=(98) K9y!ZoB
X(4)=(-1) W}5 H'D
X(5)=(3) qm)KO 4
X(6)=(-8) ,\K1cW~U5
X(7)=(1) Ilc FW
X(8)=(-5) ep<2u
x
X(9)=(4) afMIq Q?
X(10)=(-3) <IBzh_
Y Hv85y
n'#(iW)f
for a,1,10,1 NX(.Lw}
if X(a)<y then y=X(a) \k|ZbCWg
else y=y e1RtoNF ^
endif %8V/QimHU
print X(a)," ",y Z<#beT6
next q#RVi8('
print "last result:", y {-]/r
.#;;pu7W
一个小例子,应该可以解决你的问题