funtion numbers=test()
numbers=[44 5 2 0 3 54 200];
m=size(numbers);
count=m(2);
for j=1:count-1
for i=1:(count-j)
if numbers(i)>numbers(i+1)
mark=numbers(i);
numbers(i)=numbers(i+1);
numbers(i+1)=mark
end
end
end
end
funtion numbers=test()
numbers=[44 5 2 0 3 54 200];
m=size(numbers);
count=m(2);
for j=1:count-1
for i=1:(count-j)
if numbers(i)>numbers(i+1)
mark=numbers(i);
numbers(i)=numbers(i+1);
numbers(i+1)=mark
end
end
end
end