program SumOfNumbers;
varsum, i, num, count: integer;
beginsum := 0;i := 5;count := 0;
while sum < 324 dobeginsum := sum + i;i := i + 4;count := count + 1;end;
writeln('Number of terms: ', count);end.
program SumOfNumbers;
var
sum, i, num, count: integer;
begin
sum := 0;
i := 5;
count := 0;
while sum < 324 do
begin
sum := sum + i;
i := i + 4;
count := count + 1;
end;
writeln('Number of terms: ', count);
end.