Сформулируйте условие задачи для программы:
var a:array [1..100] of integer;
s,i,n: integer;
Begin
readln(n);
for i:=1 to n do a[i]:=sqr(i);
s:=0;
for i:=1 to n do s:=s+a[i];
writeln(s);
end.
Please enter comments
Please enter your name.
Please enter the correct email address.
You must agree before submitting.

Answers & Comments


Copyright © 2024 SCHOLAR.TIPS - All rights reserved.