Program PRACT4; Uses CRT; Const Fact: Array[0..6] of Integer = (1,1,2,6,24,120,720); Var a, b, c: Byte; Begin ClrScr; For a := 1 to 6 do For b := 0 to 6 do For c := 0 to 6 do Begin If ((a * 100 - Fact[a]) + (b * 10 - Fact[b]) + (c - Fact[c]) = 0) then Writeln(a,b,c); End; ReadKey; End.