The correct option is B 3
Let x−π=a and πx−1=b.
Then, a+b=(x−1)(1+π)
So, the equation is of the form ||a|−|b||=|a+b|, which is possible only if ab≤0
So, (x−π)(πx−1)≤0
⇒π(x−π)(x−1π)≤0
⇒x∈[1π,π]
Possible integral values of x are 1,2,3.
So, number of integral values of x is 3.