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 the odd numbers in a matrix with 1.
More Problems
Write a program to print the matrix in column-major order.
Write a program to create a matrix of size m x n filled with random integers.
Write a program to sort all elements of a matrix in ascending order.
Write a program to sort all elements of a matrix in descending order.
Write a program to calculate the product of elements in each row of a matrix.
Write a program to calculate the product of elements in each column of a matrix.
Write a program to check if all elements of a matrix are positive.
Write a program to check if all elements of a matrix are negative.
Python
Language
Editor
Run & Output
Save
AI Code Generate
AI Test Case
Run the code to see the output here...