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!

Recommended Answers

All 4 Replies

Member Avatar for iamthwee

huh?

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.

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

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.