凉秋夜色 |
2021-05-28 14:38 |
y=0 .^j 6 declare X, double, 1,10 8wz%e( rKEi1b X(1)=(5) fQ c%a1' X(2)=(-6) U/'"w
v1y X(3)=(98) GADb Xp3 X(4)=(-1) p.^glz >B X(5)=(3) Qz/o-W; X(6)=(-8) S~fUR n X(7)=(1) KLD)h,] X(8)=(-5) 7.)e4 X(9)=(4) _|qJ)gD[ X(10)=(-3) C[MZ9r aC:Sy^Tf \ cmt'b for a,1,10,1 1H sfCky{ if X(a)<y then y=X(a) %B+W#Q` else y=y epM;u endif A_3V1<J`] print X(a)," ",y a_Y*pOu next R!IODXP= print "last result:", y mOji\qia EUH&"8
L 一个小例子,应该可以解决你的问题
|
|