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 print all perfect square numbers in the first diagonal of the matrix.
More Problems
Write a program to print all perfect cube numbers in the second diagonal of the matrix.
Write a program to check if the sum of all diagonal elements is divisible by both 3 and 6.
Write a program to check if the product of all border elements is divisible by both 7 and 11.
Write a program to replace all even numbers in the matrix with the sum of their row and column indices.
Write a program to replace all odd numbers in the matrix with the product of their row and column indices.
Write a program to print the matrix elements in a spiral pattern starting from the center and expanding outwards.
Write a program to print the matrix elements in a reverse spiral pattern starting from the outer edges.
Write a program to check if all elements in the diagonals are palindromic numbers.
Python
Language
Editor
Run & Output
Save
AI Code Generate
AI Test Case
Run the code to see the output here...