Answer the question
In order to leave comments, you need to log in
Why is it that when I try to withdraw the amount, it does not give out what I need?
I tried to write a program, and there, when I try to display the sum
of a row of a matrix entered in an array, it gives this: elements in a string
Here is a piece of code to find the sum of strings and write them into a separate array
for (i = 1; i <= m; i++)
{
for (j = 1; j <= n; j++)
summ[i] += ar[i][j];
Answer the question
In order to leave comments, you need to log in
The code is not enough, but I think that you do not initialize summ to zero
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question