Ось її розв*язок
.
var
a,b,c,d,s,f,v : integer;
begin
v:=0 ;
for a:=1 to 9 do
for b:=1 to 9 do
for c:=1 to 9 do
for d:=1 to 9 do
for s:=1 to 9 do
for f:=1 to 9 do
if (a+b+c=d+s+f) and (d+f+s=a+b+c) then v:=v+1 ;
WriteLn (v) ;
readln ;
end.
.
var
a,b,c,d,s,f,v : integer;
begin
v:=0 ;
for a:=1 to 9 do
for b:=1 to 9 do
for c:=1 to 9 do
for d:=1 to 9 do
for s:=1 to 9 do
for f:=1 to 9 do
if (a+b+c=d+s+f) and (d+f+s=a+b+c) then v:=v+1 ;
WriteLn (v) ;
readln ;
end.
if (a+b+c=d+s+f) and (d+f+s=a+b+c) then v:=v+1 ;