It is the exercise 10 on page 348 of Analysis I of Amann and Escher. Please, comment if this lacks something. Thank you.
Let $X\subseteq\Bbb K$ be perfect and $f\in C^n(X,\Bbb K)$ for some $n\in\Bbb N_{>0}$. A number $x_0\in X$ is called a zero of multiplicity $n$ of $f$ if $f(x_0)=f'(x_0)=\ldots=f^{(n-1)}(x_0)=0$ and $f^{(n)}(x_0)\neq 0$.
Show that if $X$ is convex, then $f$ have a zero of multiplicity $\ge n$ at $x_0$ if and only if there is some $g\in C(X,\Bbb K)$ such that $f(x)=(x-x_0)^n g(x)$ for all $x\in X$.
$(\implies)$ From the characteristics of $f$ if we define
$$g(x):=\begin{cases}\frac{f(x)}{(x-x_0)^n}, &x\in X\setminus\{x_0\}\\f^{(n)}(x_0)/n!,& x=x_0\end{cases}$$
the function is continuous and defined in $X$ since
$$\lim_{x\to x_0}\frac{f(x)}{(x-x_0)^n}=\lim_{x\to x_0}\frac{f^{(n)}(x)}{n!}=\frac{f^{(n)}(x_0)}{n!}$$
The limit is well-defined because $X$ is perfect. Because $f$ is $n$-times differentiable then $g$ is $n$-times differentiable at least in $X\setminus\{x_0\}$.
$(\impliedby)$ If we have a function $g\in C^n(X,\Bbb K)$ then the function defined by
$$f(x):=(x-x_0)^n g(x)$$
have a zero of multiplicity $m\ge n$ in $x_0$. Certainly $g\in C(X,\Bbb K)$, as required.
Question: I dont know how to complete the discrepancy about $g$ in one implication or the other, I mean, from the first implication we need that $g$ would be $n$-times differentiable at least in $X\setminus\{x_0\}$. But from the second implication I only can define $g$ as $n$-times differentiable in $X$.