2019-07-30 07:20 AM
2019-07-31 03:37 AM
dim test[],st[] test[1]=2.2 test[2]=1 test[3]=3.5 test[4]=4 test[5]=5.3 for i = 1 to 5 sl=1 for i2= 1 to 5 if test>test[i2] then sl=sl+1 next i2 st[sl]=test next i print stIf it is an integer, you can use this simple way of writing.
dim test[],st[] test[1]=2 test[2]=1 test[3]=4 test[4]=5 test[5]=3 for i = 1 to 5 st[test] = test next i print st