I want to show that
If $G$ non-abelian group of order $pq$ with $p,q$ primes then $Z(G)=\{e\}$.
It's immediate that if $Z(G) \neq \{e\}$ then $|Z(G)|=p$ or $|Z(G)|=q$ and using that any group of prime order is cyclic then $G / Z(G)$ is cyclic, which implies that $G$ is abelian and therefore we have a contradiction.
I wanted to know if it's possible to prove it without using the theorem that if $G/Z(G)$ is cyclic then $G$ is abelian because my professor hasn't mentioned it before. Any help would be greatly appreciated.