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