Программа:
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.
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Verified answer
Программа:
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.