program ReplaceEvenDigits;varN, reversedN, digit, newN: integer;beginwrite('Enter a number: ');readln(N);
reversedN := 0;newN := 0;
while N <> 0 dobegindigit := N mod 10;N := N div 10;
end;
while reversedN <> 0 dobegindigit := reversedN mod 10;reversedN := reversedN div 10;
writeln('Number with even digits replaced by zeros: ', newN);end.
program ReplaceEvenDigits;
var
N, reversedN, digit, newN: integer;
begin
write('Enter a number: ');
readln(N);
reversedN := 0;
newN := 0;
while N <> 0 do
if digit mod 2 = 0 thenbegin
digit := N mod 10;
N := N div 10;
digit := 0;
reversedN := reversedN * 10 + digit;
end;
while reversedN <> 0 do
newN := newN * 10 + digit;begin
digit := reversedN mod 10;
reversedN := reversedN div 10;
end;
writeln('Number with even digits replaced by zeros: ', newN);
end.