Write a program that checks if an integer entered from the keyboard is divisible by 3 (2.4).

program zz1;
var n: integer; // set a variable of integer type
begin
write (‘enter an integer’);
read (n); // enter a number from the keyboard
if n mod 3 = 0 then writeln (‘the entered number is divisible by 3’) else writeln (‘the entered number is not divisible by 3’);

if n mod 2 = 0 then writeln (‘the entered number is divisible by 2’) else writeln (‘the entered number is not divisible by 2’);

if n mod 4 = 0 then writeln (‘the entered number is divisible by 4’) else writeln (‘the entered number is not divisible by 4’);
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.