3、8 90 46 45 62]Program ex;typearr=array [1..100] of integer;vara:arr;i,n:integer;Procedure select(var a1:arr;k:integer);varI,j,t:integer;BeginFor i:=1 to k-1 doFor j:=i+1 to k doIf a1[i]>a1[j] thenbegint:=a1[i];a1[i]:=a1[j];a1[j]:=t;end;end;beginreadln(n);for i:=1 to n doread(a[i]