while i < 7 do begin if (n mod 2 = 1) then begin s := s + n; i := i + 1; end; n := n + 1; end;
writeln(s); end.
var i, n, s: integer;
begin readln(n); i := 0; s := 0;
repeat if (n mod 2 = 1) then begin s := s + n; i := i + 1; end; n := n + 1; until i >= 7;
writeln(s); end.
var i, n, s: integer;
begin readln(n); n := n + (n + 1) mod 2; s := 0;
for i := 1 to 7 do begin s := s + n; writeln(n); n := n + 2; end;
writeln(s); end.
mamanger
06.02.2023
Var i, a, b, c: integer;
function check_is(a, b, c: integer): boolean; begin if a >= b + c then check_is := false else if b >= a + c then check_is := false else if c >= a + b then check_is := false else check_is := true; end; procedure check_how(a, b, c: integer);begin if ((a = b) and (b = c) and (a = c)) then writeln('равносторонний') else if ((a = b) or (b = c) or (a = c)) then writeln('равнобедренный') else writeln('разносторонний'); end;
begin writeln('Введите стороны треугольника'); read(a, b, c); if check_is(a, b, c) then check_how(a, b, c) else writeln('Нет такого треугольника!'); end.
i, n, s: integer;
begin
readln(n);
i := 0;
s := 0;
while i < 7 do
begin
if (n mod 2 = 1) then begin
s := s + n;
i := i + 1;
end;
n := n + 1;
end;
writeln(s);
end.
var
i, n, s: integer;
begin
readln(n);
i := 0;
s := 0;
repeat
if (n mod 2 = 1) then begin
s := s + n;
i := i + 1;
end;
n := n + 1;
until i >= 7;
writeln(s);
end.
var
i, n, s: integer;
begin
readln(n);
n := n + (n + 1) mod 2;
s := 0;
for i := 1 to 7 do
begin
s := s + n;
writeln(n);
n := n + 2;
end;
writeln(s);
end.