program zadacha;
Var x,a,b :real;
begin
readln (a,b);
if a<>0 then x:=-b/a;
Writeln ('x= ',x);
end.
Var a: array[1..100] of integer;
<span> i,n,bg,nd,s: integer;
</span><span>begin
</span><span> write('n = '); readln(n);
</span><span> randomize;
</span><span> bg:=0; nd:=0;
</span><span> for i:=1 to n do
</span><span> begin
</span><span> a[i]:=random(10);
</span><span> write(a[i],' ');
</span><span> if a[i]=0 then
</span><span> if (bg>0) and (nd=0) then nd:=i
</span><span> else if bg=0 then bg:=i;
</span><span> end;
</span><span> writeln;
</span><span> if bg+nd>1 then
</span><span> begin
</span><span> if (bg mod 2=0) then inc(bg)
</span><span> else bg:=bg+2;
</span><span> if (nd mod 2=0) then dec(nd)
</span><span> else nd:=nd-2;
</span><span> writeln('начало: ',bg,' конец: ',nd);
</span><span> s:=1;
</span><span> repeat
</span><span> s:=s*a[bg];
</span><span> bg:=bg+2;
</span><span> until bg>nd;
</span><span> writeln('произведение: ',s);
</span><span> end
</span><span> else writeln(0);
</span><span>end.
</span>
n = 15
<span>4 4 7 0 3 5 6 1 1 8 8 4 0 1 9
</span><span>начало: 5 конец: 11
</span><span>произведение: 144
</span>
3) var a:array [1..1000] of longint; n,k,i:integer;
<span>begin </span>
<span>readln(n); k:=0;</span>
for i:=1 to n do
read (a[i]);
for i:=1 to n do
<span>if (a[i]>5) and (a[i]<19) then k:=k+a[i];
writeln(k);
readln; end.</span>
//Язык. Паскаля. Язык Паскаля, Карл!
//Pascal ABC.NET v3.1 сборка 1172
Var
a,b,c:integer;
d:boolean;
begin
d:=false;
readln(a);
readln(b);
repeat
c:=a mod 10;
a:=a div 10;
if c=b then d:=true;
until (c=b) or (a=0);
if d=true then writeln('Есть') else writeln('Нет');
end.
<span>Пример ввода:
34457
8
Пример вывода:
Нет
</span>