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!
Elvi 0 Newbie Poster
Recommended Answers
Jump to PostDo 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.
All 4 Replies

iamthwee
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
Elvi 0 Newbie Poster
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
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.