===== PascalABC.NET =====
begin
var n := ReadInteger('n =');
var a := ArrRandom(n, -100, 100);
a.Println;
Swap(a[a.IndexMax], a[a.High]);
a.Println
end.
===== PascalABC.NET =====
begin
var n := ReadInteger('n =');
var a := ArrRandom(n, -100, 100);
a.Println;
Swap(a[a.IndexMax], a[a.High]);
a.Println
end.