0

Hello! I have a exercise about matrices.
here is the question:
is given a square matrix [M] [N] which determines the amount of each column.
Thank u!

Edited by JorgeM: moved to C forum category.

3
Contributors
4
Replies
31
Views
3 Years
Discussion Span
Last Post by Ancient Dragon
0

Do you mean the sum of each column? You will need two loops to do that, the outer loops counts N columns and the inner loop counts M rows. It's almost identical to the way you would do it on paper or in an Excel spreadsheet.

Edited by Ancient Dragon

0

YES! Can u please solve this exercise for me?
Thank u!

0

No, I will not solve it for you, but we will help you solve it yourself. Post some code that you have started so we can see where you need help.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.