An array of N elements is given. display the squares of odd-numbered elements.

var
i, n: integer;
arr: array [1..n] of integer; // array of integers

begin
readln (n); // input the size of the array
for i: = 1 to n do
begin
write (arr [i] * arr [i], ”); // calculate and display the square of the element
i: = i + 2; // increment the counter by 2 as we only need odd items
end

readln
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.