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 even numbers in the diagonals of the matrix.
More Problems
Write a program to print all odd numbers in the borders of the matrix.
Write a program to calculate the sum of all Fibonacci numbers in the diagonals of a square matrix.
Write a program to calculate the sum of all perfect square numbers in the borders of a square matrix.
Write a program to print all the elements of the matrix that are divisible by both 7 and 11.
Write a program to print all the elements of the matrix that are divisible by both 9 and 12.
Write a program to count how many prime elements are there in the first diagonal.
Write a program to count how many composite elements are there in the second diagonal.
Write a program to check if the matrix contains only prime numbers in the top-left quadrant.
Python
Language
Editor
Run & Output
Save
AI Code Generate
AI Test Case
Run the code to see the output here...