void geradorNumeros()
{
List<int> ListaNumeros = new List<int>();
Random valoresRandom = new Random();
Console.WriteLine("ta funcionando");
for (int i = 0; i < 10; i++)
{
ListaNumeros.Add(valoresRandom.Next(1,101));
}
foreach (int i in ListaNumeros)
{
if (BuscarPares(i))
{
Console.WriteLine(i);
}
}
}
bool BuscarPares(int numeroPares)
{
return numeroPares % 2 == 0;
}
geradorNumeros();