Program D1KPxx6; uses crt; var mas:array [1..78] of integer; i,n,sum:integer; begin for i:=5 to 78 do begin mas[i]:=i; write(mas[i],' '); end; for i:=5 to 78 do begin if (mas[i] mod 11=0) then begin writeln(mas[i]); mas[i]:=mas[i]*mas[i]; end; write(mas[i],' '); end; end.
program D1KPxx7; uses crt; var i,n,sum:integer; begin read(n); for i:=1 to n do if (i mod 5=0) and (i mod 7<>0) then sum:=sum+i; writeln(sum); end.
uses crt;
var
mas:array [1..78] of integer;
i,n,sum:integer;
begin
for i:=5 to 78 do
begin
mas[i]:=i;
write(mas[i],' ');
end;
for i:=5 to 78 do
begin
if (mas[i] mod 11=0) then
begin
writeln(mas[i]);
mas[i]:=mas[i]*mas[i];
end;
write(mas[i],' ');
end;
end.
program D1KPxx7;
uses crt;
var
i,n,sum:integer;
begin
read(n);
for i:=1 to n do
if (i mod 5=0) and (i mod 7<>0) then
sum:=sum+i;
writeln(sum);
end.