Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            int[] f1 = { 10, 1, 20, 5, 4, 11, 3, 7, 6 };
            Minima(f1);

            string z1  = "42";
            string z2  = "29";
            string sum = Addiere(z1, z2);

            Console.WriteLine(z1);
            Console.WriteLine(z2);
            Console.WriteLine(sum);

            Bug b1 = new Bug("Fehler A");
            Bug b2 = new Bug("Fehler B");
            Bug b3 = new Bug("Fehler B", Status.Offen);

            Bug.DuplikateAusgeben(b1, b2, b3);

            for (int i = 1; i <= 4; i++)
            {
                for (int j = 20 + i; j < 20 + 4 + i; j++)
                {
                    Console.Write($"{j} ");
                }
                Console.WriteLine();
            }
            int[] arr = { 8, 21, 20, 9 };
            foreach (int i in arr)
            {
                if (i % 2 == 0)
                {
                    if (i >= 0 && i <= 10)
                    {
                        Console.Write("A");
                    }
                }
                else if (i < 0 || i % 3 == 0)
                {
                    Console.Write("B");
                }
                else
                {
                    Console.Write("C");
                }
            }
            int x, y = 3;

            Add(out x, ref y);

            Console.WriteLine($"{x} {y} ");
        }