1 program selection_demo(input,output);
5 a : array[1..MAX] of integer;
8 procedure swap(var a,b : integer);
17 procedure selection_sort;
23 for top := n downto 2 do
26 for i := 1 to top-1 do
34 writeln('How many number would you like to sort (max=',MAX:2,') ?');
37 writeln('Enter in ',n:1,' numbers:');