Let $A$ be an integral domain that is an algebra over a field $K$. Show that if $A$ is finite-dimensional as a $K$-vector space, it is a field. Is the converse true?
Obviously the converse isn't true in general, just set $A:=\mathbb C$ and $K:=\mathbb Q$. For the other direction, set $r:=\operatorname {dim}_KA$ and assume that $r\ge 2$ (if $r=1$, then $A\cong K$ and we'd be done). So $A\cong \bigoplus_{i=1}^r(K)_i$, and in particular $A$ contains $e_1:=(1,0,\dots , 0)$ and $e_2:=(0,1,\dots , 0)$. These two non-zero elements are such that $e_1e_2=0$, contradicting the hypothesis that $A$ is an integral domain, and so $r$ must be $1$.
It makes me suspicious is that $A$ ends up to be $K$ and not a field in general, but it should be correct, do you confirm it?