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 perfect square elements in the matrix.
More Problems
Write a program to calculate the sum of all perfect cube elements in the matrix.
Write a program to print the matrix elements in reverse spiral order starting from the bottom-right corner.
Write a program to print the matrix elements in reverse spiral order starting from the top-left corner.
Write a program to count how many prime elements are there in the first and last rows.
Write a program to count how many composite elements are there in the first and last columns.
Write a program to check if all diagonal elements are divisible by both 2 and 7.
Write a program to check if all border elements are divisible by both 5 and 9.
Write a program to print all prime elements in the first and last rows of a square matrix.
Python
Language
Editor
Run & Output
Save
AI Code Generate
AI Test Case
Run the code to see the output here...