An entire function $f(z)$ has said to have finite order if there exist positive constants $c$ and $n$ such that $$ |f(z)|\le ce^{|z|^n} .$$ Prove that if such a function has only a finite number of zeros, then it must be of the form $$ f(z)=p(z)e^{q(z)} ,$$ where $p$ and $q$ are polynomials.
My attempt:
I have tried considering the function $g(z)\colon=f(z)/e^{z^n}$ but we can not use the condition since $|e^{z^n}|\le e^{|z|^n}$ but $$|g(z)|\ge\frac{|f(z)|}{e^{|z|^n}}\le c.$$ Then I am stuck... I really need some hints to move on. Thank you.