Yes now that you have digested that:
Do it by entering your own 9 digits using two for loops the second nested under the first. The sum of the first row when i=0 is j[0]+j[1]+j[2].
The sum of the first column when j=0 is i[0]+i[1]+i[2].
Now you can substitute you array elements with random integers in some range to comply with the rest of the question.
Comment