using System; class Program { static void Main(string[] args) { int[] firstArray = new int[] { 1, 2, 3 }; int[] secondArray = new int[] { 4, 5, 6 }; int[] resultArray; SortArray(firstArray); SortArray(secondArray); resultArray = MultiplyArrays(firstArray, secondArray); for (int i = 0; i < resultArray.Length; i++) Console.WriteLine(resultArray[i]); Console.ReadLine(); } private static void SortArray(int[] array) { int temp = new int(); for (int i = 0; i < array.Length; i++) { for (int j = i + 1; j < array.Length; j++) { if (array[i] < array[j]) { temp = array[j]; array[j] = array[i]; array[i] = temp; } } } } private static int[] MultiplyArrays(int[] a, int[] b) { int[] tempArray = new int[3]; for (int i = 0; i < a.Length; i++) { tempArray[i] = a[i] * b[i]; } return tempArray; } }