Beginner's LINQ exercise to print the odd numbers in descending order
People will commonly create an Extension method for IEnumerable to add a map method that behaves much like the IList&lt;T&gt;.ForEach method. 

public static class IEnumerableExtensions {
    public static void ForEach&lt;T&gt;(this IEnumerable&lt;T&gt; source, Action&lt;T&gt; action) {
        foreach(item in source) action(item);
    }
}


With this in hand, you can go all out on your filter &amp; map. 

class Program
{
    public static void Main(string[] args)
    {
        int[] numbers = { 5, 4, 1, 3, 9, 8, 6, 7, 2, 0 };

        numbers.Where(IsOdd)
                .OrderByDescending(x =&gt; x)
                .ForEach(Console.WriteLine);
     }

     private static bool IsOdd(int x) =&gt; x % 2 == 1;
}


Note that I did extract a method so we could name the filter. It makes it a bit more readable (and as an added bonus, reusable). 

You may be asking yourself why naming the predicate is better than using a variable. Other than reuse, the benefit is that there's no need to store any state. At its heart, Linq is a functional way to program, so it's good to embrace it.