Display all odd numbers from a sequence of numbers entered from the keyboard. Pascal program

program zz1;
const n = 5; // set the number of numbers in the sequence
var mas: array [1..n] of integer; // create an array to store these numbers
i: integer;
begin
for i: = 1 to n do // organize a loop for entering sequence numbers from the keyboard
read (mas [i]); // write these numbers into an array
for i: = 1 to n do // iterate over the sequence numbers in the array
if mas [i] mod 2 = 1 then write (mas [i], ”); // check if the number is not divisible by two, then display it on the screen 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.