1)
begin
var Fact:=1;
for var i:= 1 to 10 do
Fact*=i;
Println(Fact);
end.
2)
var (x,sum,product):=(2,0,BigInteger(1));
while x <=20 do begin
Print(x);
sum+=x;
Product*=x;
x+=2;
end;
Writeln('Сумма = ',sum,newline,'Произведение = ',product);
1)
begin
var Fact:=1;
for var i:= 1 to 10 do
Fact*=i;
Println(Fact);
end.
2)
begin
var (x,sum,product):=(2,0,BigInteger(1));
while x <=20 do begin
Print(x);
sum+=x;
Product*=x;
x+=2;
end;
Writeln('Сумма = ',sum,newline,'Произведение = ',product);
end.