Beam.Example.Introductory.IncrementBy.Program.Main C# (CSharp) Méthode

Main() static private méthode

static private Main ( Array args ) : void
args Array
Résultat void
        static void Main(string[] args)
        {
            // method variables
            int count = 47;

            // print header
            Console.WriteLine();
            Console.WriteLine(" Values for ( 47 thu 78 ) incremented by ( 4 )");
            Console.WriteLine();

            // start loop
            while (count < 78)
            {
                Console.WriteLine(" Number is now {0} ", count);
                count = count + 4;
            }

            // print footer
            Console.WriteLine();

        } // end Main Method
Program