y=0 l9%ckC*q
declare X, double, 1,10 T{3-H(-gA
I+Qt5Ox
X(1)=(5) +sZY0(|K8
X(2)=(-6) /55 3v;l<
X(3)=(98) >;M STHeW
X(4)=(-1) @Z""|H"0
X(5)=(3) `]6W*^'PD
X(6)=(-8) M_$;"NS+}
X(7)=(1) hE,-CIRg
X(8)=(-5) &F0>V o
X(9)=(4) yJ; ;&
X(10)=(-3) s}gdi
4e[ 0.2?
+*qTZIXj
for a,1,10,1 H%>cpwa[7
if X(a)<y then y=X(a) BG-nf1K(
else y=y A$zC$9{0I
endif GVu-<R
print X(a)," ",y R6GlQ G
next <pT1p4T<
print "last result:", y \@NnL\t
u
cE,,9M@^
一个小例子,应该可以解决你的问题