Write a program that finds the sum of the squares of numbers from 1 to 10.

program zz1;
var i, s: integer; // set variables of integer type, the first for the loop, the second for the sum
begin
for i: = 1 to 10 do // organize a loop in which we iterate over all numbers from one to ten
s: = s + i * i; // square the number by multiplying by ourselves, and add the resulting number to the sum
writeln (‘the sum of the squares of numbers from 1 to 10 =’, s); // display the answer
end.



One of the components of a person's success in our time is receiving modern high-quality education, mastering the knowledge, skills and abilities necessary for life in society. A person today needs to study almost all his life, mastering everything new and new, acquiring the necessary professional qualities.