Write a program that randomly fills in 0s and 1s into a 4-by-4 matrix, prints the matrix,

Question:

Write a program that randomly fills in 0s and 1s into a 4-by-4 matrix, prints the matrix, and finds the first row and column with the most 1s. Here is a sample run of the program:
0011
0011
1101
1010
The largest row index: 2
The largest column index: 2

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: