to compare two numbers using logical operators