Hello world,
I'm in trouble..
I made a sorting algoritm, ex. buble sort . .
but i can't see the process of for (loop). .
it just sorted,
I mean, when Input 54231,
output must be step by step . .
like :
for 1 = 42315 (loop 1)
for 2 = 23145 (loop 2)
for 3 = 21345 (loop 3)
for 4 = 12345 (loop 4)
how to make it?
thxs.
I'm in trouble..
I made a sorting algoritm, ex. buble sort . .
but i can't see the process of for (loop). .
it just sorted,
I mean, when Input 54231,
output must be step by step . .
like :
for 1 = 42315 (loop 1)
for 2 = 23145 (loop 2)
for 3 = 21345 (loop 3)
for 4 = 12345 (loop 4)
how to make it?
thxs.