Here is an exercise from the textbook of topology by Armstrong.
Let $G$ be a compact Hausdorff space which has the structure of a group. Show that $G$ is a topological group if the multiplication function $m:G\times G \rightarrow G$ is continuous.
I tried to use the conditions to prove the inverse function is also continuous, but I couldn't find out how to connect the inverse with the multiplication...
Any help will be appreciated.
Consider the map $(a,b)\to (a,ab)$. Prove that it's a homeomorphism from $G\times G$ to $G\times G$ and consider its inverse.