Дамп всех задач
This commit is contained in:
18
Pascal/03.11.16/Program10.pas
Normal file
18
Pascal/03.11.16/Program10.pas
Normal file
@@ -0,0 +1,18 @@
|
||||
const
|
||||
N = 30;
|
||||
|
||||
var
|
||||
a: array [1..N] of integer;
|
||||
i, j, min: integer;
|
||||
|
||||
begin
|
||||
Randomize();
|
||||
for i := 1 to N do begin a[i] := Random(0, 100);write(a[i], ' '); end;
|
||||
writeln();
|
||||
min:=100;
|
||||
for i := 1 to N do
|
||||
begin
|
||||
if (a[i] > 20) and (min > a[i]) then min := a[i];
|
||||
end;
|
||||
writeln(min);
|
||||
end.
|
||||
Reference in New Issue
Block a user