program findEvenDigitsPosition;
varnumber, digit, position: integer;
beginwrite('Enter a three-digit number: ');readln(number);
position := 1;
while number <> 0 dobegindigit := number mod 10;
end;
end.
program findEvenDigitsPosition;
var
number, digit, position: integer;
begin
write('Enter a three-digit number: ');
readln(number);
position := 1;
while number <> 0 do
if digit mod 2 = 0 thenbegin
digit := number mod 10;
writeln('Position of even digit ', digit, ' is ', position);
number := number div 10;
position := position + 1;
end;
end.