Найти сумму чисел кратных семи от 10 до 600
program P1;vari,summ : integer;begin
summ := 0;
for i := 10 to 600 doif i mod 7 = 0 thensumm := summ + i;
writeln('Otvet: ',summ);
readln;readln;end.
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
program P1;
var
i,summ : integer;
begin
summ := 0;
for i := 10 to 600 do
if i mod 7 = 0 then
summ := summ + i;
writeln('Otvet: ',summ);
readln;
readln;
end.