Campbell Ritchie wrote:MVT: welcome to the Ranch
![]()
I am afraid I shall have to ask you to edit one post to remove the CAPITAL LETTERS. As you doubtless know, writing all upper‑case is frowned upon on all websites.
Please spell the variable pi not pie, unless you usually write pie for π. What Henry meant is writing == true or == false is very error‑prone, as you can read in this thread.
Henry Wong wrote:
Hint: Be careful to not confuse the assignment operator with the equality comparison operator. See your while loop.
Emil Jennings wrote:
...it gives me the very last value of pie within that range (at the very last iteration - 1000)
Yes, it does because you never ask isRangeFound.
See?