Varf:text;A,M:integer;BeginAssign(f,'C:\Users\user\Desktop\Файл.txt');Reset(f);M:=0;RepeatRead(f,A);if (A mod 2 = 0)and(A<0) then M:=A;Until Eof(f);Close(f);if M<>0 thenBeginReset(f);RepeatRead(f,A);if (A>M)and(A mod 2 = 0)and(A<0) then M:=A;Until Eof(f);Close(f);Assign(f,'C:\Users\user\Desktop\ДругойФайл.txt');Rewrite(f);Write(M);Write(f,M);End;End.