Posts by Lucas.A • 24 points
1 post
-
0
votes1
answer63
viewsA: Adding Positives in Range
The question asks that each positive number be summed within the interval, so within the cycle you must do: for (i = num1 ; i < num2+1; i++) { if (i > 0) { soma = soma + i; } } If for example…