program SumOfSquares;
varsum, i: integer;
beginsum := 0;
for i := 1 to 20 dobeginsum := sum + i * i;end;
writeln('Sum of squares from 1 to 20: ', sum);end.
program SumOfSquares;
var
sum, i: integer;
begin
sum := 0;
for i := 1 to 20 do
begin
sum := sum + i * i;
end;
writeln('Sum of squares from 1 to 20: ', sum);
end.