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 calculate the sum of all elements divisible by 2 and 7 in the matrix.
More Problems
Write a program to calculate the product of all elements divisible by 5 and 9 in the matrix.
Write a program to check if the matrix contains only prime numbers in the borders.
Write a program to check if the matrix contains only composite numbers in the diagonals.
Write a program to replace all prime numbers in the borders with -3.
Write a program to replace all composite numbers in the diagonals with 3.
Write a program to print the matrix elements in a clockwise pattern starting from the center.
Write a program to print the matrix elements in a counterclockwise pattern starting from the outer edges.
Write a program to check if the sum of all elements in the first diagonal is greater than the sum of all elements in the second diagonal.
Python
Language
Editor
Run & Output
Save
AI Code Generate
AI Test Case
Run the code to see the output here...