using System;
namespace Example59
{
///
/// Summary description for Class1.
///
class Class1
{
///
/// The main entry point for the application.
///
[STAThread]
static void Main(string[] args)
{
int num = 13, denominator = 0, result = 0;
try
{
result = num / denominator;
}
catch (DivideByZeroException e)
{
Console.WriteLine("got here: " + e.ToString());
}
Console.WriteLine("result= " + result);
}
}
}