Beispiel #1
0
        static void main(String[] args)
        {
            int?num2 = 45;

            Rectangle r = new Rectangle();

            r.length = 5;
            r.width  = 2;
            r.Display();
            int max = r.FindMax(r.length, r.width);

            Console.ReadKey();

            r.Factorial(4);

            // Initialization of array
            int [] marks = new int[5] {
                1, 2, 3, 4, 5
            };
            for (int i = 0; i < 5; i++)
            {
                Console.WriteLine("Element {0}: {1}", i, marks[i]);
            }

            foreach (int j in n)
            {
            }
        }