If $f,g$ are continuous at $a$, show that $h(x)=\max(f(x),g(x))$ and $k(x)=\min(f(x),g(x)) \text{ are also continuous } \forall x\in X$.
Hello. I am aware this question has been asked before and I also know the solution. But since I did it another way, I wanted to make sure my reasoning is correct. I'll make my argument just for one part since it is analogous:
We know $f,g$ are continuous at $a$. Suppose $h(x)$ is not continuous at $a$. This would imply that either $f$ or $g$ are not continuous there, which is a contradiction.
Is this ok?