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 elements in the matrix that are divisible by both 6 and 12.
More Problems
Write a program to check if the sum of all elements in the matrix is divisible by 10.
Write a program to check if the product of all elements in the matrix is divisible by 15.
Write a program to print all elements in the first and last rows divisible by both 4 and 5.
Write a program to print all elements in the first and last columns divisible by both 7 and 9.
Write a program to replace all odd numbers in the matrix with 0 and even numbers with -1.
Write a program to replace all prime numbers in the matrix with 1 and composite numbers with -1.
Write a program to print all diagonal elements in a square matrix that are divisible by 4.
Write a program to print all border elements in a square matrix that are divisible by 6.
Python
Language
Editor
Run & Output
Save
AI Code Generate
AI Test Case
Run the code to see the output here...