Write a program that forms an array of 10 integers and counts the number of array elements that are multiples of 5.

program zz1;
const n = 10; // set the number of numbers in the array
var i, s: integer; // set variables of integer type
m: array [1..n] of integer;
begin
for i: = 1 to n do // organize a loop in which we enter n given numbers from the keyboard into the array
read (m [i]);
for i: = 1 to n do // organize a loop in which we iterate over all the numbers in the array
if m [i] mod 5 = 0 then s: = s + 1; // check if the number is divisible by five without a remainder, then we count it

write (‘the number of array elements is multiples of five =’, s); // display the answer
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.