$$\large f(x)=\begin{cases}\left(\sin\frac\pi{2+x}\right)^{1/x^2},& x\ne0\\c,&x\ne0\end{cases}$$
I want to find the c for which this function is continuous: I tried to find the limit of f(x) as x approches 0 to get a value which would be my C but I have trouble finding the limit. I get infinity which would mean there is no continuous extension at 0.
How would you proceed?