凉秋夜色 |
2021-05-28 14:38 |
y=0 PQ!?gj declare X, double, 1,10 +WEO]q?K kU9AfAe X(1)=(5) ~[X:twidkL X(2)=(-6) ljR?* P X(3)=(98) 1nM?>j%k X(4)=(-1) %^@0tT X(5)=(3) E=U^T/ X(6)=(-8) H(ftOd.y X(7)=(1) x: wq"X X(8)=(-5) rN!9& X(9)=(4) Erymx$@P X(10)=(-3) WAXrA$:3J /SM#hwFxJ& )UU6\2^ for a,1,10,1 K0!#l Br if X(a)<y then y=X(a) L$07u{Q else y=y tp3N5I endif 2OOj8JS print X(a)," ",y {}gk4xr next z&G3&?Z print "last result:", y
nLLHggNAV k`zK 一个小例子,应该可以解决你的问题
|
|