Question
Let $\text{f(x)}=\begin{cases}\frac{\text{k}\cos\text{x}}{\pi-2\text{x}}, & \text{where x} \ne\frac\pi2\\3, & \text{where x} \ne\frac\pi2\end{cases}$ and if $\lim\limits_{\text{x}\rightarrow\frac\pi2}{\text{f(x)}}=\text{f}\Big(\frac\pi2\Big),$ find the value of k.