Write a program that determines if the last digit is an even number.

var a, f: integer;
begin
writeln (‘Enter a number’);
readln (a);
f: = a mod 10;
if (f mod 2 = 0) then write (‘The last digit is even’) else write (‘The last digit is odd’);
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.