+ 1
Problem with arrays in c++
Hi how can I divide by a number the all list of an array ?
4 Réponses
+ 6
You can use a loop and divide each element by the number.
+ 4
You will need to think about whether you want to create a new array or modify the existing one.
0
can you write me the code please? i haven’t understood
0
for(i : list)
list[i] /= 2