Write a program in C# for Exception Handling
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication8 { class Program { static void Main(string[] args) { int age = 0; Console.WriteLine("Enter age"); try { age = int.Parse(Console.ReadLine()); } catch (Exception ex) { Console.WriteLine(ex.Message); } } } } OUTPUT Enter age M Input string was not in a correct format