1.
program ll1;
var i, a: integer;
begin
i:=2;
a:=2;
writeln(a);
while i<=10 do
a:=a*a;
i:=i+1;
end;
end.
2.
var a, i, sum: integer;
ssum: real;
i:=1;
sum:=0;
readln(a);
sum:=sum+a;
ssum:=sum/i;
if ssum<1000 then
writeln('Низкая цена');
3.
var A: array[1..7] of integer;
i, pr: integer;
Randomize;
for i:=1 to 7 do
A[i]:=random(10)-5;
write(A[i], ' ');
if A[i] = 0 then A[i]:=1;
pr:=pr * A[i];
writeln(pr);
4.
writeln(1*2*3*4*5*6 + 3*3*3*3*3*3);
1.
program ll1;
var i, a: integer;
begin
i:=2;
a:=2;
writeln(a);
while i<=10 do
begin
a:=a*a;
i:=i+1;
writeln(a);
end;
end.
2.
program ll1;
var a, i, sum: integer;
ssum: real;
begin
i:=1;
sum:=0;
while i<=10 do
begin
i:=i+1;
readln(a);
sum:=sum+a;
end;
ssum:=sum/i;
if ssum<1000 then
writeln('Низкая цена');
end.
3.
program ll1;
var A: array[1..7] of integer;
i, pr: integer;
begin
Randomize;
for i:=1 to 7 do
begin
A[i]:=random(10)-5;
write(A[i], ' ');
if A[i] = 0 then A[i]:=1;
pr:=pr * A[i];
end;
writeln(pr);
end.
4.
program ll1;
begin
writeln(1*2*3*4*5*6 + 3*3*3*3*3*3);
end.