Good afternoon guys, I'm locking in a part of my code and I do not really know the logic to solve it.
If the manufacturer name of the vector carros
at position j
is equal to Chevrolet
, change it to GM
.
for(j = 0; j < qtd; j++) {
if(carros[j].fabricante == "Chevrolet") {
carros[j].fabricante = "GM";
}
}