Posts by Eliseu Caldeira • 11 points
1 post
-
1
votes2
answers559
viewsA: Algorithm that reads three numbers and displays the result of the sum of the first two and multiplied by the third
In this line soma[i] += soma[i]; you are multiplying what has been entered by 2. That is, if you have entered 2 in index 0 you are doing sum[0] = sum[0] + sum[0] What you should do is a cycle where…