1. Engineering
  2. Computer Science
  3. c i need help writing code where the only thing...

Question: c i need help writing code where the only thing...

Question details

C++

I need help writing code where the only thing the user inputs is a matrix, written in the form below. The user DOESN'T input the number of rows and columns and the program has to determine that by itself then store the matrix in a linked list and print it out along with the number of rows and columns.

Input:

1 4 5 6

5 0 0 5

0 3 0 6

Output:

1 4 5 6

5 0 0 5

0 3 0 6

Number of rows: 3

Number of columns: 4

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution