program SumOfFirstFiveOddNumbers;
vari, count, sum: Integer;
begincount := 0;sum := 0;
for i := 1 to 10 dobeginif i mod 2 <> 0 thenbeginsum := sum + i;count := count + 1;
end;
writeln('Сумма первых пяти нечетных чисел: ', sum);
end.
program SumOfFirstFiveOddNumbers;
var
i, count, sum: Integer;
begin
count := 0;
sum := 0;
for i := 1 to 10 do
if count = 5 thenbegin
if i mod 2 <> 0 then
begin
sum := sum + i;
count := count + 1;
break;
end;
end;
writeln('Сумма первых пяти нечетных чисел: ', sum);
end.