Write a program named SubscriptValidation in which you declare an array of 10 integers and store values in the array.
Write a try block in which you place a loop that prompts the user for a subscript value and displays the value stored in the corresponding array position.
Create a catch block that catches any IndexOutOfRangeException and displays an appropriate error message.