var n,s,i:integer;
begin
read(n);
s:=1;
for i:=2 to n do
s:=s+i*i;
write(s);
end.
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
var n,s,i:integer;
begin
read(n);
s:=1;
for i:=2 to n do
s:=s+i*i;
write(s);
end.