Create a program that allows you to enter the array elements a [1..10] and the numbers k1 and k2

Create a program that allows you to enter the array elements a [1..10] and the numbers k1 and k2 from the keyboard, and then displays the array elements with indices from k1 to k2 on the screen in one line

program zz1;
var mas: array [1..10] of integer; // set up an array for ten numbers
i, k1, k2: integer; // set variables of integer type
begin
for i: = 1 to 10 do // enter ten numbers from the keyboard into the array
read (mas [i]);
write (‘enter the given numbers k1 and k2’); // enter two given numbers from the keyboard
read (k1, k2);
for i: = k1 to k2 do // set the cycle from the first given number to the second
write (mas [i], ”); // print the answer in a line separated by a space
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.