Từ \(\frac{y+x-z}{x}=\frac{z+x-y}{y}=\frac{x+y-z}{z}\)
\(\Rightarrow\frac{y+x-z}{x}+2=\frac{z+x-y}{y}+2=\frac{x+y-z}{z}+2\)
\(\Rightarrow\frac{x+y+x}{x}=\frac{x+y+z}{y}=\frac{x+y+z}{z}\)
* Xét \(x+y+z\ne0\)
\(\Rightarrow x=y=z\)
Khi đó \(B=\frac{x+y}{y}.\frac{y+z}{z}.\frac{x+z}{x}=2.2.2=8\)
* Xét \(x+y+z=0\)
\(\Rightarrow\left\{\begin{matrix}x+y=-z\\y+z=-x\\x+z=-y\end{matrix}\right.\)
Khi đó \(B=\frac{x+y}{y}.\frac{y+z}{z}.\frac{x+z}{x}=\frac{-z}{y}.\frac{-x}{z}.\frac{-y}{x}=-1\)