1)
program z1;
var
i, s: integer;
begin
s := 0;
for i := 50 to 60 do
s := s + i;
writeln(s);
end.
2)
program z2;
var
c_t, c_f, i: integer;
begin
c_t := 0;
c_f := 0;
for i := 1 to maxint do
begin
if i mod 200 = 0 then
c_t := c_t + 1;
if i mod 400 = 0 then
c_f := c_f + 1;
end;
writeln('на 200 делится ', c_t, ' чисел');
writeln('на 400 делится', c_f, ' чисел');
end.