Program PRACT8; Uses CRT; Var a,b,c,d,e,f: byte; count: word; Begin ClrScr; count := 0; For a := 0 to 9 do For b := 0 to 9 do For c := 0 to 9 do For d := 0 to 9 do For e := 0 to 9 do For f := 0 to 9 do If (a+b+c = d+e+f) then Inc(count); Writeln('Число счастливых билетов: ',count); ReadKey; End.