using System; namespace Operators { class Values { static void Main(string[] args) { try { int valueOne; int valueTwo; // A const variable to hold the value that each number will be // multiplied by const int multiplyer = 12; Console.WriteLine( "Please enter a number between 1 and 12"); valueOne = int.Parse(Console.ReadLine()); // Use && operator to determine whether the number entered // by the user is between 1 and 12 if (valueOne > 0 && valueOne < 13) { valueTwo = valueOne * multiplyer; Console.WriteLine( valueOne + " x " + multiplyer + " = " + valueTwo); } else { Console.WriteLine( "You didn't enter a number between 1 and 12"); } } // Handle the exception generated by wrongly formatted user input catch (System.FormatException) { Console.WriteLine( "You didn't enter a Whole Number!"); } Console.WriteLine( '\n' + "Please Press any Key to Exit"); System.Console.ReadKey(); } } }