Write a program to input an integer n and build a n-by-n matrix with the numbers 1,2,...,n on the main diagonal and zeros elsewhere.
Create an index-powered vector
232 Solvers
07 - Common functions and indexing 4
259 Solvers
Find the dimensions of a matrix
267 Solvers
118 Solvers
265 Solvers