Code:class Program { static int Sum(int[] a) { int sum = 0; for (int i = 0; i < a.Length; i++) { sum += a[i]; } return sum; } public static int[] Prop(int x, params int[] y) { int count = 0; if (y.Length > 1) for (int i = 0; i < y.Length; i++) { count++; int[] p = new int[count]; int f = x * y[i] / Sum(y); p[count] = f; } return p; } static void Main(string[] args) { Prop(2016, 5, 7, 9); } } }