program SymmetryCheck;varnumber, firstDigit, lastDigit: integer;beginwriteln('Enter a three-digit number: ');readln(number);
firstDigit := number div 100;lastDigit := number mod 10;
if firstDigit = lastDigit thenwriteln('1')elsewriteln('0');end.
program SymmetryCheck;
var
number, firstDigit, lastDigit: integer;
begin
writeln('Enter a three-digit number: ');
readln(number);
firstDigit := number div 100;
lastDigit := number mod 10;
if firstDigit = lastDigit then
writeln('1')
else
writeln('0');
end.