var
i, summ:integer;
begin
for i := 1 to 50 do
if i mod 10 = 3 then
summ := summ + i;
writeln('Summ = ', summ);
end.
s,i:integer;
for i := 1 to 50 do begin
s := s+i;
end;
writeln(s);
var
i, summ:integer;
begin
for i := 1 to 50 do
if i mod 10 = 3 then
summ := summ + i;
writeln('Summ = ', summ);
end.
var
s,i:integer;
begin
for i := 1 to 50 do begin
if i mod 10 = 3 then
s := s+i;
end;
writeln(s);
end.