using System; using System.IO; using System.Collections.Generic; using System.Data.Common; namespace Exercises_C_Sharp.E12_ResizeArray { class Exercise_2 { public static void Start() { Random rand = new(); int random = rand.Next(5,20); int[] arr = new int[random]; for(int i = 0; i < random; i++) arr[i] = rand.Next(1,1000); //Oben wir ein zufälliges Array erstellt. Sorgen Sie dafür, dass den Array eine zufällige Zahl hinzugefügt wird: //Code START //Code ENDE for(int i = 0; i < arr.Length; i++) Console.Write(arr[i] + " - "); } } }