program SumOfNumbers;
varsum, number, i: integer;
beginsum := 0;
for i := 1 to 10 dobeginwriteln('Enter a number: ');readln(number);sum := sum + number;end;
writeln('The sum of the 10 numbers is: ', sum);
end.
program SumOfNumbers;
var
sum, number, i: integer;
begin
sum := 0;
for i := 1 to 10 do
begin
writeln('Enter a number: ');
readln(number);
sum := sum + number;
end;
writeln('The sum of the 10 numbers is: ', sum);
end.