a) Give an example of a continuous, non-constant function $f$ such that for each $x$, $f(x)$ is a rational number, or prove that no such example exists.
b) Give an example of a continuous, non-constant function $f$ such that for each $x$, $f(x)$ is an irrational number, or prove that no such example exists.
i am no cite for this one problem. please help thanks a lot