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 border elements with the sum of squares.
More Problems
Write a program to print all elements in the matrix that are divisible by both 2 and 8.
Write a program to print all elements in the matrix that are divisible by both 6 and 12.
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.
Python
Language
Editor
Run & Output
Save
AI Code Generate
AI Test Case
Run the code to see the output here...