class Program
{
static void Main(string[] args)
{
//where()筛选方法
int[] nu = { 1,8,6,4,9,7,3};
var listtt = nu.Where(item => item % 2 == 0).Select(i => i * i);
foreach (int item in listtt)
{
Console.WriteLine(item);
}
Console.ReadLine();
}
}
{
static void Main(string[] args)
{
//where()筛选方法
int[] nu = { 1,8,6,4,9,7,3};
var listtt = nu.Where(item => item % 2 == 0).Select(i => i * i);
foreach (int item in listtt)
{
Console.WriteLine(item);
}
Console.ReadLine();
}
}