Ver Mensaje Individual
  #1 (permalink)  
Antiguo 11/10/2012, 11:51
console
 
Fecha de Ingreso: octubre-2012
Mensajes: 1
Antigüedad: 11 años, 6 meses
Puntos: 0
Pregunta errores de compilacion c#

ESTOS SON LOS ERRORES QUE ME INDICA...

Advertencia 2 Se ha detectado código inaccesible C:\Users\Administrador\Desktop\coviello 2do año\taller\tp3\tp3-2--\tp3-2--\Program.cs 24 38 tp3-2--

Error 1tp3_2__.Program.num(int, int)': no todas las rutas de código devuelven un valor C:\Users\Administrador\Desktop\coviello 2do año\taller\tp3\tp3-2--\tp3-2--\Program.cs 11 20 tp3-2--


class Program
{

static [COLOR="rgb(255, 140, 0)"]int num[/COLOR](int p, int im)

{
int n = 10;
Console.WriteLine("ingrese los numeros:");
n = int.Parse(Console.ReadLine());
Console.WriteLine("Los num impares son:{0} y los pares son:{1}", num(im, p));
Console.ReadKey();
}
static void Main(string[] args)
{
int n = 10;
int im=0, p=0;
for (int i = 1; n <= 10; i++)
{
if (n % 2 == 0)
p++;
else
im++;
return;

}

}
}
}