Write a program in which you declare an array of fi ve integers and store fi ve values in the array. Write a try block in which you place a loop that attempts to access each element of the array,...


Write a program in which you declare an array of fi ve integers and store fi ve values in the array. Write a try block in which you place a loop that attempts to access each element of the array, incrementing a subscript from 0 to 10. Create a catch block that catches the eventual IndexOutOfRangeException; within the block, display “Now you’ve gone too far.” on the screen. Save the fi le as GoTooFar.cs.



May 19, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here