Let $n \in \mathbb{N}.$
We have that $\text{det(A)} \neq 0$ for every diagonal matrix $A \in \mathbb{R}^{n \times n}$. Is this statement true or false? State why.
I don't know if zero is excluded when they say $n \in \mathbb{N}$. But if it's included then the statement is wrong because let $n=0$ then determinant will be zero too.
If zero is excluded, then the statement will be true because we only have that diagonals $\neq$ zero which means if we split the matrix to vectors, we will get linearly independent vectors. And determinant of linearly independent vectors is $\neq $ zero.
What do you think about it? Did I do it correctly for both cases?