Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

matrix N * M. Replace all the elements of the array, whose values equal to the sum of their indices

0 votes
asked Oct 10, 2018 by Fortunatus (120 points)

use C language,

considering the matrix N * M. Replace all the elements of the array, the values ​​of which are equal to the sum of their indices, ones.

1 Answer

0 votes
answered Oct 10, 2018 by Fady Serhan (420 points)
iterate on the matrix using for inside another for loop' then check if ((i+j)==Matrix[i,j] then do_something
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.
...