if statement isn’t working properly in binary search even the condition is true
I’m tryng to code a binary search method and it’s working properly but in more steps than expected.
I found that an if statement in while loop isn’t working even when the condition is printed, it’s true.