Question 3: Write a program that prompts the user to input the size of rows and col umns of an mxm matrix. Then calculate the sum of the diagonal of the matrix.
1
Sample Run: Enter a value for the row: 4 Enter a value for the column: 4 The matrix: 1234 1234 1234 1234
The sum of the diagonal:l0 Question 4Write a program that creates a schedule for weeks,where you display each day of a week for w number of weeks. The program should prompt the user to input the number of weeks w.