using System; class Program { static void Main(string[] args) { try { int valueOne; int valueTwo; int valueThree; System.Console.WriteLine ("Please Enter A Whole Number: "); valueOne = int.Parse(Console.ReadLine()); System.Console.WriteLine ("Please Enter Another Whole Number: "); valueTwo = int.Parse(Console.ReadLine()); valueThree = valueOne + valueTwo; if (valueThree > 0) { System.Console.WriteLine ("The Sum of ValueOne: {0} and ValueTwo: {1} is Equal to: {2}", valueOne, valueTwo, valueThree); } else { System.Console.WriteLine ("Both Values were Zero!"); } // End if } // End try block // Handle exception generated by user input entered in // the wrong format catch (System.FormatException) { Console.WriteLine( "You didn't enter a Whole Number!"); } Console.WriteLine( '\n' + "Please Press any Key to Exit"); System.Console.ReadKey(); } // End main method } // End class