n:=10
for i:=1 to n do
begin
arr[ i ] := random(50);
writeln(arr[ i ]);
end;
min:=arr[ 0 ];
if (arr[ i ] < min) then min := arr[ i ];
arr[ 0 ]:=min;
write(arr[ i ],' ');
мой брат писал
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
n:=10
for i:=1 to n do
begin
arr[ i ] := random(50);
writeln(arr[ i ]);
end;
min:=arr[ 0 ];
for i:=1 to n do
if (arr[ i ] < min) then min := arr[ i ];
arr[ 0 ]:=min;
for i:=1 to n do
write(arr[ i ],' ');
мой брат писал