Question
Find the value of $k$ so that the function $f$ is continuous at the indicated point:
$f(x)=\left\{\begin{array}{l}x+1 \text { if } x \leq \pi \\ \cos x \text { if } x>\pi\end{array}\right.$ at $x=\pi$
$f(x)=\left\{\begin{array}{l}x+1 \text { if } x \leq \pi \\ \cos x \text { if } x>\pi\end{array}\right.$ at $x=\pi$