int[] numbers = { 1, 2, 3, 4, 5 };
int[] scores = new int[5];
int[,] matrix = new int[3, 3];
int[][] jaggedArray = new int[3][];
jaggedArray[0] = new int[] { 1, 2 };
jaggedArray[1] = new int[] { 3, 4, 5 };
jaggedArray[2] = new int[] { 6 };
static void PrintArray(int[] arr)
{
foreach (int num in arr)
{
Console.WriteLine(num);
}
}
static int Sum(params int[] numbers)
{
int result = 0;
foreach (int num in numbers)
{
result += num;
}
return result;
}
int[] numbers = { 3, 1, 4, 1, 5, 9, 2, 6, 5, 3 };
Array.Sort(numbers);
static void Main(string[] args)
{
foreach (string arg in args)
{
Console.WriteLine(arg);
}
}