Question: Define a square matrix ( matrix with same number of rows and columns ) with random values of user entered rows and / or columns.
Define a square matrix matrix with same number of rows and columns with random values of user entered rows andor columns. The user should not enter a matrix but only give values of both rows and columns or only one of them. You will then use those values to
define the square matrix. Next, use a for loop to display each row but the first row should display the first element, second row would display first elements, rd row should display first elements and so on
Note: must use a for loop
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
