x,y t=x x=y y=t
dime a(6) for i= 1 to 6
a(i)=int(rand()*(99-10+1)+10 endfor
for i=1 to 3 t=a(i)
a(i)=a((6+1)-i) a((6+1)-i)=t endfor for i=1 to 6 ?a(i) Endfor
Return 回文数
a(1)-a(6) 1+6=7 6=7-1 a(2)-a(5) 2+5=7 5=7-2 a(3)-a(4) 3+4=7 4=7-3
7-i
6/2=3 循环
For i=1 to 3
A(i)-a((6+1)-i) T=a(i)
A(i)=a((6+1)-i)
i=1,2,3