Ver Mensaje Individual
  #4 (permalink)  
Antiguo 11/01/2010, 07:26
Avatar de Fuzzylog
Fuzzylog
 
Fecha de Ingreso: agosto-2008
Ubicación: En internet
Mensajes: 2.511
Antigüedad: 15 años, 8 meses
Puntos: 188
Respuesta: Problema con ciclo for en Netbeans

Vamos que lo pongas así xD

SumaPares(int inf, int sup)
{
limiteInferior = inf;
limiteSuperior = sup;

for (int i = limiteInferior; i <= limiteSuperior;i++)//Error en esta linea
{
if (i % 2 != 0)
{
continue;
}
suma+=limiteInferior;
}

}

Última edición por Fuzzylog; 11/01/2010 a las 07:26 Razón: además sobraba un paréntesis