ArithmeticException Solution

Write an application that includes catch clauses for ArithmeticException,
FormatException,IndexOutOfRangeException,and Exception. Write a try block containing errors to throw each of the exceptions. As you test the application, include an error that throws the first exception. Then comment it out and program an error that throws the next exception and so on. Your final solution should include at least one statement per exception that throws each exception.The statements should all be commented out by the time you finish testing.Be sure to include documenting comments with each statement.
For the C# language

Powered by