using System; namespace Branching { class Test { static void Main() { try { //Input three numbers Console.WriteLine("Input first number"); int intFirst = Convert.ToInt32(Console.ReadLine()); Console.WriteLine("Input second number"); int intSecond = Convert.ToInt32(Console.ReadLine()); Console.WriteLine("Input third number"); int intThird = Convert.ToInt32(Console.ReadLine()); // Find the largest int intMax = intFirst; if (intSecond > intMax) intMax = intSecond; if (intThird > intMax) intMax = intThird; // Show the largest Console.WriteLine("The largest is {0}", intMax); Console.ReadLine(); } // End try block // Handle exeption generated by wrongly formatted user input catch (System.FormatException) { Console.WriteLine( "You didn't enter a Number!"); } Console.WriteLine( '\n' + "Please Press any Key to Exit"); System.Console.ReadKey(); } // End Main } // End class } // End namespace