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 replace all composite numbers in the matrix with their cube.
More Problems
Write a program to print all diagonal elements divisible by both 4 and 6.
Write a program to print all border elements divisible by both 5 and 11.
Write a program to check if the sum of all elements in the middle diagonal is an odd number.
Write a program to check if the product of all elements in the middle diagonal is an even number.
Write a program to print all the elements in the matrix that are divisible by both 9 and 12.
Write a program to count how many prime elements are in the middle row and column of the matrix.
Write a program to check if all elements in the matrix are divisible by both 2 and 3.
Write a program to print the matrix in triangular spiral order starting from the top-right corner.
Python
Language
Editor
Run & Output
Save
AI Code Generate
AI Test Case
Run the code to see the output here...