Posts by Diogo Barbosa • 1 point
1 post
-
0
votes2
answers51
viewsA: I am trying to solve an exercise with arrays in java my difficulty is to print the average of odd and odd Indian array
For the average of even indices, it is preferable to make a cycle that starts at 0 and goes from 2 to 2. The same is true for odd (starting at 1). int cont = 0; for(j=0; j < nrIndividuos; j=j+2){…
javaanswered Diogo Barbosa 1