var
count,sum,n:integer;
begin
count:=1;
sum:=1;
n:=1;
writeln('count: ',count,', ',n,'^2: ',sqr(n),', sum: ',sum);
repeat
n:=n+2;
sum:=sum+sqr(n);
inc(count);
until sum>10000;
writeln('sum: ',sum,', count: ',count);
end.
var
count,sum,n:integer;
begin
count:=1;
sum:=1;
n:=1;
writeln('count: ',count,', ',n,'^2: ',sqr(n),', sum: ',sum);
repeat
n:=n+2;
sum:=sum+sqr(n);
inc(count);
writeln('count: ',count,', ',n,'^2: ',sqr(n),', sum: ',sum);
until sum>10000;
writeln('sum: ',sum,', count: ',count);
end.