1) Program n1; var i: integer; sum: real; begin sum:=0; for i:=102 to 1000 do if (i mod 3=0) then sum:=sum+i; writeln('Сумма: ',sum); end. 2) Program n2; var i: integer; begin for i:=10 to 99 do if (i mod 2<>0)then writeln(i); end.
Program prog1; var i: integer;sum: real; begin sum:=0; repeat i:=i+1; if (i mod 3=0) then sum:=sum+i; until (i>100) and (i<1000); writeln('Сумма= ',sum); end. 2) Program prog2; var i: integer; begin i:=10; repeat i:=i+1; if (i mod 2<>0)then writeln(i); until i>=100; end.
Program n1;
var i: integer;
sum: real;
begin
sum:=0;
for i:=102 to 1000 do if (i mod 3=0) then sum:=sum+i;
writeln('Сумма: ',sum);
end.
2)
Program n2;
var i: integer;
begin
for i:=10 to 99 do if (i mod 2<>0)then writeln(i);
end.
var i: integer;sum: real;
begin
sum:=0;
repeat
i:=i+1;
if (i mod 3=0) then sum:=sum+i;
until (i>100) and (i<1000);
writeln('Сумма= ',sum);
end.
2)
Program prog2;
var i: integer;
begin
i:=10;
repeat
i:=i+1;
if (i mod 2<>0)then writeln(i);
until i>=100;
end.