program SumOfOddNumbers;
varnum, sum, count, i: integer;
beginsum := 0;count := 0;
for i := 1 to 5 dobeginwriteln('Enter a number: ');readln(num);
end;
writeln('Sum of odd numbers: ', sum);end.
program SumOfOddNumbers;
var
num, sum, count, i: integer;
begin
sum := 0;
count := 0;
for i := 1 to 5 do
if num mod 2 <> 0 thenbegin
writeln('Enter a number: ');
readln(num);
begin
sum := sum + num;
count := count + 1;
end;
end;
writeln('Sum of odd numbers: ', sum);
end.