Hi! I'm having a problem reading through an outerloop nested with inner if and inner loop and nested with inner if again in the inner loop. Please help me, how to read this.
The ctr increases monotonically on every iteration from 1 to (enteredNum * 2) - 1.
We do know that 1 <= enteredNum+1 <= enteredNum*2-1. (Unless the enteredNum is too small.)
We could thus split that range into two: 1 to enteredNum and enteredNum+1 to enteredNum*2-1