For() solo devuelve el primer ciclo

Drop the semicolon here:

for (int contador = 0; contador < 6; contador++); {
1 Like