Solution Review: Print a Matrix
In this review, solution of the challenge 'Print a Matrix' from the previous lesson is provided.
We'll cover the following...
We'll cover the following...
Solution
How does the above code work?
In the above solution, we have to initialize an array using nested loops having:
- All the diagonal elements as
0