using System.Collections.Generic;
public static void Main()
Console.WriteLine("Hello World");
int[] ribbons = new int[] {5, 2, 7, 4, 9};
int l1 = cutTheRibbons(ribbons, numberofRibbons);
int[] ribbons1 = new int[] {1, 2, 3, 4, 9};
int numberofRibbons1 = 6;
int l2 = cutTheRibbons(ribbons1, numberofRibbons1);
static int cutTheRibbons(int[] a, int k) {
Console.WriteLine("Max value of Array is {0}", a.Max());
int length = (shortest + longest) /2;
Console.WriteLine("length {0}",length);
for (int x = 1; x <= a.Length; x++)
Console.WriteLine(a[x - 1].ToString());
Console.WriteLine(a[x-1]%k<=0);
static int[] sortArrays(int[] arr)
for (int j = 0; j < length - 1; j++)