Программа на Паскаль.
Program Dik;
Var
i, min, max, minnum, maxnum: integer;
a: array[1..15] of integer;
Begin
for i:= 1 to 15 do
readln(a[i]);
max:=a[1]; min:=a[1];
for i:= 1 to 15 do begin
if a[i] min:=a[i]; minnum:=i;
end;
if a[i]>max then begin
max:=a[i]; maxnum:=i;
end;
end;
writeln('max=', max);
writeln('min=', min);
writeln('maxnum=', maxnum);
writeln('minnum=', minnum);
end.