public static void Main()
int[] number = { 8, 17, 24, 5, 25 };
int[] divisor = { 2, 0, 0, 5 };
for (int j = 0; j < number.Length; j++)
Console.WriteLine("Number: " + number[j]);
Console.WriteLine("Divisor: " + divisor[j]);
Console.WriteLine("Quotient: " + number[j] / divisor[j]);
catch (DivideByZeroException) {
Console.WriteLine("Not possible to Divide by zero");
catch (IndexOutOfRangeException) {
Console.WriteLine("Index is Out of Range");