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 negative elements in a matrix with their absolute values.
More Problems
Write a program to print the middle row and middle column of an odd-sized matrix.
Write a program to find the largest element in the main diagonal of a square matrix.
Write a program to find the smallest element in the main diagonal of a square matrix.
Write a program to replace the diagonal elements with their respective column sums.
Write a program to replace the diagonal elements with their respective row sums.
Write a program to replace the even numbers in a matrix with their square.
Write a program to replace the odd numbers in a matrix with their cube.
Write a program to create a matrix with elements alternating between 1 and 0 in a checkerboard pattern.
Python
Language
Editor
Run & Output
Save
AI Code Generate
AI Test Case
Run the code to see the output here...