Arone
❔ Array mess
int count = 0;
ArrayList raffleList = new ArrayList();
int[] raffleNumber = new int[5];
foreach (int number in raffleNumber)
{
Console.WriteLine("Please write a number from 1-60 that you would like to choose.");
raffleNumber[count] = Convert.ToInt32(Console.ReadLine());
}
raffleList.Add(raffleNumber);
Array.Sort(raffleNumber);
Console.WriteLine(raffleNumber);
Console.ReadLine();
22 replies