# Calculate the product of the elements of the one-dimensional array A (10).

June 26, 2021 | education

| var

number, sum_of_elements_in_array: integer;

arr: array [1..10] of integer;

begin

sum_of_elements_in_array: = 1;

for number: = 1 to 10 do

begin

arr [number]: = random (5) +1;

write (arr [number]: 5);

sum_of_elements_in_array: = sum_of_elements_in_array * arr [number];

end;

writeln ();

writeln (‘The product of array elements:’, sum_of_elements_in_array);

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.