Write a pascal program that displays all even numbers from 20 to 40

program num;

var
i: integer;

begin
for i: = 20 to 40 do
if i mod 2 = 0 then writeln (i); // check the evenness of the number by calculating the remainder of an integer division – mod operation: if the remainder of dividing the specified number by 2 is 0, then this number is even.
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.