using static System.Console;
using System.Globalization;
class SubscriptExceptionTest
double[] nums = {15, 30, 45, 60, 2, 4, 6, 8, 9, 10};
WriteLine("Enter index number or 99 to quit >> ");
input = Convert.ToInt32(ReadLine());
catch(IndexOutOfRangeException)
WriteLine("Index was outside the bounds of the array.");