For each $x\in[0, 10)$, write its decimal expansion $x = a_0.a_1a_2a_3 \dots a_n\dots$. Take into account the number $x'$ formed by the digits of odd rank of this decimal expansion; i. e., $x'= 0.a_1a_3a_5 \dots a_{2n-1} \dots$. We have two cases:
(1) $x'$ is not periodic
(2) $x'$ is periodic after the digit $a_{(2n_0-1)}$
Now let $f$ be the function from the half-open interval $[0, 10)$ to $\mathbb{R}$ defined by
$f(x) = \begin{cases} 0 & \text{in case (1) for } x'\\ a_{(2n_0)}.a_{2(n_0+1)} \dots a_{2(n_0+k)} \dots & \text{in case (2) for } x' \end{cases}$
(Note that in case (2), the integer part $[f(x)]= a_{(2n_0)}$ of $f(x)$ can be nonzero.)
QUESTION
Prove that for all $x_1, x_2$, the function $f$ takes on the open interval $(x_1, x_2)$ all values between $f(x_1)$ and $f(x_2)$ despite $f$ being discontinuous in all points of its domain.