program evenodd;
var x, y: longint;
begin
readln(x, y);
if ((x mod 2 = 0) and (y mod 2 = 0)) then
writeln('Both numbers are even')
else
writeln('One of the numbers is odd')
end.
Copyright © 2025 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
program evenodd;
var x, y: longint;
begin
readln(x, y);
if ((x mod 2 = 0) and (y mod 2 = 0)) then
writeln('Both numbers are even')
else
writeln('One of the numbers is odd')
end.