Let $G$ be a finite group with $n$ elements of a field with the field's multiplication operation. Let $d \: | \: n$ and consider the set $G_d$ containing elements of $G$ with order $d$. Suppose $G_d \neq \varnothing$, so there is $y \in G_d$.
Let's generate a cyclic group $\langle y \rangle$. From group theory, generators of $\langle y \rangle$ are elements of $\langle y \rangle$ that are relatively prime to $|\langle y \rangle| = d$. And because any other elements having orders different than $d$ could not generate $\langle y \rangle$, $G_d$ contains all elements that generate $\langle y \rangle$, so $\#G_d$ = $\phi(d)$.
($\#G_d$ is number of elements of $G_d$; $\phi$ is Euler's totient function.)
Let's partition $G$ into sets of elements with the same order. For example if $G = Z_{10}$, then it would be partitioned into sets of elements: $\{0\}$, $\{5\}$, $\{2, 4, 6, 8\}$ and $\{1, 3, 7, 9\}$ of order $1$, $2$, $5$, and $10$ respectively. By Lagrange's theorem, all elements of a group must have their orders divide the order of the group, so by partitioning G into all $d \: | \: n$, we would have the whole $G$, and having a formula as following:
$$n = |G| = \sum_{d|n} \#G_d = \sum_{d|n} \phi(d)$$
Borrowing Gauss' divisor sum we also have the following formula:
$$\sum_{d|n} \phi(d) = n$$
To recapitulate, we have shown that $\#G_d = 0$ or $\#G_d = \phi(d)$, but if $\#G_d$ could be equal to $0$, then we would have:
$$n = |G| = \sum_{d|n} \#G_d \leq \sum_{d|n} \phi(d) = n$$
which is false because we would have $|G|$ less than $n$. So $\#G_d = \phi(d)$, could not be $0$, and in particular for $d = n$ and $y_n \in G_n \neq \varnothing$, we are guaranteed to have $y_n$, so is $\langle y_n \rangle$ as well.
Then note that $\langle y_n \rangle = \{x \in G \: | \: x^n = 1\}$, and as $|\langle y_n \rangle| = n$, that is all elements of $G$ (because $G$ is already defined as a finite group with $n$ elements). This proves that $G \cong \langle y_n \rangle$ hence cyclic.