EdocGram
Home
(current)
Topics
EdocAI
Code Editor
HTML
Javascript
PHP
Python
Python AI Code Editor
More
Contact
About
Privacy Policy
Terms and Conditions
Log In
Topic: Matrix Manipulation Problem / Level: beginner
Problem:
Write a program to replace all diagonal elements with their column index.
More Problems
Write a program to replace all diagonal elements with the average of the elements in their row.
Write a program to replace all diagonal elements with the average of the elements in their column.
Write a program to find the product of all the even elements in a matrix.
Write a program to find the product of all the odd elements in a matrix.
Write a program to check if the sum of elements in the main diagonal equals the sum of elements in the last row.
Write a program to check if the sum of elements in the anti-diagonal equals the sum of elements in the first column.
Write a program to print the matrix elements in a star pattern starting from the center.
Write a program to print the matrix in a checkerboard pattern of 0s and 1s.
Python
Language
Editor
Run & Output
Save
AI Code Generate
AI Test Case
Run the code to see the output here...