Write a program that prompts the user to enter the length of a square matrix, randomly fills

Question:

Write a program that prompts the user to enter the length of a square matrix, randomly fills in 0s and 1s into the matrix, prints the matrix, and finds the rows, columns, and diagonals with all 0s or 1s. Here is a sample run of the program:image

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

Step by Step Answer:

Question Posted: