Program zadacha;vari,min,max,x: integer;a: array [1..100] of integer;
beginfor i:=1 to 100 do begin a[i]:=random(200); writeln(a[i]); end;min:=a[i];max:=a[i];for i:=1 to 100 do beginif a[i]max then max:=a[i];end;x:=max-min;writeln('min=', min);writeln('max=', max);writeln('max-min=',x);end.