Var summ:integer;
begin
var a := Arr(1,2,3,4,5,6,7,8,9);
for var i:=0 to 8 do begin
write('[',a[i],'] ');
end;
writeln('');
for var i:=0 to 8 do begin
if (i mod 2)=1 then begin
summ:=summ+a[i];
write('[',a[i],'] ');
end;
end;
writeln('summa = ',summ);
<span>end.</span>
Var
x,d,count:integer;
begin
write('x=');
readln(x);
write('d=');
readln(d);
while x>0 do
begin
if x mod 10 = d then
count:=count+1;
x:= x div 10;
end;
writeln(count);
end.
PascalABC:
varsum ,i :longint;beginfor i:=20 to 55 dosum:=sum+i*i;writeln(sum);end.