Дамп всех задач

This commit is contained in:
2017-05-22 13:29:43 +03:00
parent b970626fef
commit 93746b05d7
173 changed files with 2505 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
const
N = 30;
var
a: array [1..N] of integer;
i, j, x: integer;
begin
Randomize();
for i := 1 to N do begin a[i] := Random(125);write(a[i], ' '); end;
x:=Random(5);
writeln('x:= ',x);
j:=0;
for i:=N downto 1 do begin if a[i]=x then j:=i; end;
if j = 0 then writeln('none') else
writeln(' ',j);
end.