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 check if the product of all elements in the middle diagonal is an odd number.
More Problems
Write a program to replace all odd elements in the matrix with -1 and even elements with 1.
Write a program to replace all even elements in the matrix with -2 and odd elements with 2.
Write a program to print all the elements in the matrix that are palindromes.
Write a program to print all the elements in the matrix that are multiples of 2 and 3.
Write a program to check if the matrix contains only multiples of 5 and 7.
Write a program to check if the matrix contains only prime numbers in the first and last rows.
Write a program to replace all diagonal elements with their nearest perfect square.
Write a program to replace all border elements with their nearest perfect cube.
Python
Language
Editor
Run & Output
Save
AI Code Generate
AI Test Case
Run the code to see the output here...