Program PRACT3; Uses CRT; Const X: Integer = 1022; Var N: LongInt; a, b: byte; f: boolean; Begin ClrScr; For a := 1 to 9 do Begin If (f) then break; For b := 0 to 9 do Begin N := 100000 * a + X * 10 + b; If (N mod 7*8*9 = 0) then Begin Writeln('Минимал число: ',N); f := true; Break; End; End; End; Writeln('Для проверки'); Writeln(N, ' / 7 = ', N/7:0:0); Writeln(N, ' / 8 = ', N/8:0:0); Writeln(N, ' / 9 = ', N/9:0:0); ReadKey; End.