If its Visual Basic, you can check here:
There is a code sample there and I tried and tested it:
http://www.robrichards.co.za/experts/viewtopic.php?f=31&t=44&p=83
--------------------------------------------------------------------------------------
http://www.softsmart.co.za Free Visual Basic Tutorials
2007-07-08 09:56:01
·
answer #1
·
answered by Anonymous
·
0⤊
0⤋
rndmnmbrs[1..SizeOf]
!comment fill your random numbers
FOR X = 1 TO SizeOf - 1
FOR Y = 1 TO SizeOf - 1
IF rndmnbrs[Y] > rndmnmbrs[Y+1]
Keeper = rndmnmbrs[Y+1]
rndmnmbrs[Y+1] = rndmnmbrs[Y]
rndmnbrs[Y] = Keeper
ENDIF
NEXT Y
NEXT X
(this is from memory test it before you turn it in, was not sure about the language this is like Pascal)
2007-07-08 08:37:36
·
answer #2
·
answered by startrektosnewenterpriselovethem 6
·
0⤊
0⤋
it truly is gay and stupid yet lavatories, i will clarify why. i became @ my aunts residing house and that i flushed the lavatory and it flooded the entire bathing room and went into the residing room because of the fact the look after became caught and so i became scared to flush lavatories for 3 months yet i did it besides. in spite of the very incontrovertible fact that i ran to the different room perfect away when I flushed it and that i became screaming 2! i'm no longer scared anymore nonetheless :-)
2016-10-20 07:36:53
·
answer #3
·
answered by estiven 4
·
0⤊
0⤋
Which language ?, if you are using Javascript, then there is a built in sort method.
http://www.w3schools.com/jsref/jsref_sort.asp
2007-07-08 08:54:09
·
answer #4
·
answered by googledwithonekick 5
·
0⤊
0⤋
a[n] is an integer array
for(i=0;i
for (j=i+1;j<=n;j++){
if (a[i]>a[j]) swap(a[i],a[j]);
}}
2007-07-08 08:32:10
·
answer #5
·
answered by iyiogrenci 6
·
0⤊
0⤋