Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            int?    num1 = null;
            int?    num2 = 45;
            Boolean b;

            int[] array1 = new int[] { 4, 5, 6 };

            Console.Write("Enter the values for array\n");

            foreach (int items in array1)
            {
                Console.WriteLine(items);
            }

            b = num2 == 45 ? true : false;

            Console.WriteLine(b);

            Console.WriteLine("values are " + num1 + " " + num2);

            Console.WriteLine("welcome");

            Class1.PrintToConsole();

            Console.WriteLine("the max is " + System.Int32.MaxValue);
            Console.WriteLine(System.Int32.MinValue);
            Console.WriteLine(System.Boolean.FalseString);
            Console.WriteLine(System.Boolean.TrueString);

            Console.Read();
        }