I am completely new to Mathematics. I am doing an exercise which requires me to use
Table to make a $10 \times 10$ matrix with numbers $1,2,...,10$ on the diagonal and $1$ in the upper diagonal entries and with $0$ in the lower diagonal matrix.
I have been able to generate the diagonal command along with the upper diagonal command (using
If) but that yields $1$ in the lower diagonals also.
Can anybody help me with this code?