y=0 Ta5iY
}
declare X, double, 1,10 BE@H~<E J
3<Y;mA=hw
X(1)=(5) lNnbd?D8
X(2)=(-6) u2Z^iY
X(3)=(98) [tw<TV"\
X(4)=(-1) ENF@6]
X(5)=(3) J+*Y)k
X(6)=(-8) f$*9J
X(7)=(1) k |aOUW
X(8)=(-5) 4!RI2?4V
X(9)=(4) ,OFr]74\
X(10)=(-3) 6L% R@r
UDq KF85H
OL+40 J
for a,1,10,1 5oy MR_yl
if X(a)<y then y=X(a) <cc0 phr
else y=y 0'2{[xF
endif X{5 DPhB,
print X(a)," ",y ><[.
next `-`iS?
print "last result:", y %l P
bM_(`]&*
一个小例子,应该可以解决你的问题