Ответ:
var x,k: integer;
begin
k:=10;
read(x);
repeat
if (abs(x) mod 10 mod 2 = 0) and (abs(x) mod 10 < k) then k:=abs(x) mod 10;
x:=x div 10
until x=0;
if k=10 then write('NO')
else write(k)
end.
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Ответ:
var x,k: integer;
begin
k:=10;
read(x);
repeat
if (abs(x) mod 10 mod 2 = 0) and (abs(x) mod 10 < k) then k:=abs(x) mod 10;
x:=x div 10
until x=0;
if k=10 then write('NO')
else write(k)
end.