For() solo devuelve el primer ciclo

As per @wildbill ... remove the ;

Also... be careful as you have declared contador twice. Once as a global variable, and once in the for loop.

1 Like