Consider the following scenario:
I have 2 constants MAX & MIN
I get a new number x
Now to check if x in the given rage I would do something like this:
if(x >= MIN && X <= MAX)
{
//Some logic
}
I wondering if there's a better way to go talking about efficiency. I do know that's a very simple task, but I am just curious to know if there's a better way