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 border elements divisible by 9 and 15 in the matrix.
More Problems
Write a program to check if the sum of all diagonal elements is divisible by both 8 and 12.
Write a program to check if the product of all border elements is divisible by both 10 and 14.
Write a program to print all prime elements in the first and last rows of a square matrix.
Write a program to print all prime elements in the first and last columns of a square matrix.
Write a program to replace all prime elements in the matrix with their greatest common divisor (GCD) with their row index.
Write a program to replace all composite elements in the matrix with their least common multiple (LCM) with their column index.
Write a program to calculate the sum of all Fibonacci numbers in the diagonals of the matrix.
Write a program to calculate the sum of all palindromic numbers in the borders of the matrix.
Python
Language
Editor
Run & Output
Save
AI Code Generate
AI Test Case
Run the code to see the output here...