ответ:
var a,b,c,kol: integer;
begin
readln(a,b,c);
if a> 0 then inc(kol);
if b> 0 then inc(kol);
if c> 0 then inc(kol);
if kol> =2 then
begin
if a mod 2=1 then dec(a);
if b mod 2=1 then dec(b);
if c mod 2=1 then dec(c);
end
else writeln(a+b+c);
end.
объяснение:
Поделитесь своими знаниями, ответьте на вопрос: