The following is a common linear algebra fact that has been asked for specific choices of $n\in\mathbb N$ in the past (see 1, 2, 3, 4, 5 among others.)
$\DeclareMathOperator{\kk}{\mathbb k}$Suppose that $A$ is a $n\times n$ matrix with coefficients in a field $\kk$ and that it is nilpotent, that is, there exists a non-negative integer $k$ such that $A^k=0$. Then in fact $A^n=0$.
Disclaimer: For the sake of having an authoritative post to reference and use to close future (abstract) duplicates this post was edited accordingly. This was done with particular interest in the highest voted (but not accepted) elementary proof which may be missed by students, who may also be quick to appeal to the Jordan normal form (or the minimal polynomial say), which require unnecessary machinery and obscure the proof.
For example, this post implies immediately that the characteristic polynomial of $A$ is $X^n$ over any field and hence that the minimal polynomial is $X^r$ for some $1\leqslant r\leqslant n$ which is mentioned in the accepted answer.