E
E
een0t2020-12-03 22:31:08
C++ / C#
een0t, 2020-12-03 22:31:08

Why is it that when I try to withdraw the amount, it does not give out what I need?

5fc93ccaaf266038962711.png
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

1 answer(s)
D
Denis Zagaevsky, 2020-12-03
@een0t

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 question

Ask a Question

731 491 924 answers to any question