program SumOfPositiveNumbers;varnumber, sum: integer;beginsum := 0;repeatwrite('Enter a number: ');readln(number);
until number < 0;
writeln('Sum of positive numbers is: ', sum);end.
program SumOfPositiveNumbers;
if number > 0 thenvar
number, sum: integer;
begin
sum := 0;
repeat
write('Enter a number: ');
readln(number);
sum := sum + number;
until number < 0;
writeln('Sum of positive numbers is: ', sum);
end.