I want to prove the following statement :
Let $B$ be a matrix, such that $B$ has the eigenvalue $0$ and no other eigenvalue. Then $B^2=0$.
In the context of the statement, $B$ is of size $2$. Is this hypothesis necessary for the statement to hold ?
How to prove the statement ?