Программа:
Pascal:
var
X, Y: integer;
begin
writeln('X = '); readln(X);
writeln('Y = '); readln(Y);
if X mod 10 = Y mod 10 then writeln('true') else writeln('false');
end.
Программа:
Pascal:
var
X, Y: integer;
begin
writeln('X = '); readln(X);
writeln('Y = '); readln(Y);
if X mod 10 = Y mod 10 then writeln('true') else writeln('false');
end.