Array Bounds Checking

# Introduction In this lab, you need to create a program that allows the user to input an index, and based on that index, the program will print the corresponding element from an array; however, if the index is out of bounds, a custom error message will be thrown and caught using exception handling.

|
60 : 00

Click the virtual machine below to start practicing