Giải:
Áp dụng tính chất dãy tỉ số bằng nhau ta có:
\(\frac{a+b-c}{c}=\frac{b+c-a}{a}=\frac{c+a-b}{b}=\frac{2\left(a+b+c\right)}{a+b+c}=2\)
+) Xét \(a+b+c=0\Rightarrow\left\{\begin{matrix}a+b=-c\\b+c=-a\\a+c=-b\end{matrix}\right.\)
\(B=\left(1+\frac{b}{a}\right).\left(1+\frac{a}{c}\right)\left(1+\frac{c}{b}\right)=\frac{a+b}{a}.\frac{a+c}{c}.\frac{b+c}{b}=\frac{-c}{a}.\frac{-b}{c}.\frac{-a}{b}=-1\)
+) Xét \(a+b+c\ne0\)
\(\left\{\begin{matrix}\frac{a+b-c}{c}=2\\\frac{b+c-a}{a}=2\\\frac{c+a-b}{b}=2\end{matrix}\right.\Rightarrow\left\{\begin{matrix}a+b=3c\\b+c=3a\\a+c=3b\end{matrix}\right.\)
\(B=\left(1+\frac{b}{a}\right)\left(1+\frac{a}{c}\right)\left(1+\frac{c}{b}\right)=\frac{a+b}{a}.\frac{a+c}{c}.\frac{b+c}{b}=\frac{3c}{a}.\frac{3b}{c}.\frac{3a}{b}\)
\(=3.3.3=27\)
Vậy B = -1 hoặc B = 27