using System.Collections.Generic;
public class ActualTryCatchExceptions
public static void Main()
Console.WriteLine("Enter the first nmumber...");
first = System.Int32.Parse(Console.ReadLine());
Console.WriteLine("Enter the second number....");
second = System.Int32.Parse(Console.ReadLine());
int result = Divide(first, second);
static void Sum(int first, int second)
int sum = first + second;
Console.WriteLine("The sum of {0} and {1} is {2}", first, second, sum);
static int Divide(int first, int second)
catch(DivideByZeroException ex)
Console.WriteLine("Cannot divide by zero you crazy cat");