Write a program that randomly fills an array of 10 elements with integers from the range [-6; 9].

Write a program that randomly fills an array of 10 elements with integers from the range [-6; 9]. And display all the elements of the array on the screen.

program zz1;
const n = 10; // set the number of elements in the array
var i: integer; // set variables of integer type

m: array [1..n] of integer; // describe an array with n elements
begin
for i: = 1 to n do // get n random numbers in a given range and write them into an array
m [i]: = random (16) -6;
for i: = 1 to n do // display the resulting array on the screen in a line separated by a space
write (m [i], ”);

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.