/SubscriptExceptionTest

Write a program named SubscriptExceptionTest in which you declare an array of 20 doubles 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. Taken from Microsoft Visual C# 2015: An Introduction to Object-Oriented Programming 6th Edition by Joyce Farrell. Page 537, Exercise 1.

Primary LanguageC#

No issues in this repository yet.