AcornPublishing_essential-csharp-7e/EssentialCSharp-8.0/src/Chapter04/Listing04.18.ComparingPrefixAndPostfix.cs
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter04.Listing04_18
{
    public class IncrementExample
    {
        public static void Main()
        {
            int x = 123;
            // Displays 123, 124, 125
            System.Console.WriteLine($"{x++}, {x++}, {x}");
            // x now contains the value 125
            // Displays 126, 127, 127
            System.Console.WriteLine($"{++x}, {++x}, {x}");
            // x now contains the value 127
        }
    }
}
