using System; namespace Operators { class Values { static void Main(string[] args) { try { int valueOne; int valueTwo; int valueThree; Console.WriteLine( "Please enter a number greater or less than 0"); valueOne = int.Parse(Console.ReadLine()); Console.WriteLine( "Please enter another number greater or less than 0"); valueTwo = int.Parse(Console.ReadLine()); valueThree = valueOne * valueTwo; // Use the && operator to determine whether the two numbers are // both positive numbers - more than 0 if (valueOne > 0 && valueTwo > 0) { Console.WriteLine( "The answer is a Positive Number. The answer is: " + valueThree); // Use the && operator to determine whether the two numbers are // both negative numbers - less than 0 } else if (valueOne < 0 && valueTwo < 0) { Console.WriteLine( "The answer is a Positive Number. The answer is: " + valueThree); } // Use the OR operator to determine whether one of the numbers is // less than 0 else if (valueOne < 0 || valueTwo < 0) { Console.WriteLine( "The answer is a Negative Number. The answer is: " + valueThree); } else { Console.WriteLine( "Both numbers are not greater or less than 0"); } } catch (System.FormatException) { Console.WriteLine( "You didn't enter a Whole Number!"); } Console.WriteLine( '\n' + "Please Press any Key to Exit"); System.Console.ReadKey(); } } }