- #1
- 349
- 1
Homework Statement
http://pastebin.com/7ehbwkvE [Broken]
expires in 1 month...
the problem statement is very vague... we are given this code of an infinite loop, and need to fix the problem that it poses by either using a correct while loop or a for loop.
Homework Equations
The Attempt at a Solution
so looking at this and the comments given, the loop seems to be creating a divergent sequence that will never satisfy the terms of the while loop and terminate... though, i dont know what/if that sequence is convergent at all...
i changed the while (term < 5000) and it ended fine as expected. . . i dont even know why i made this topic after all lol
Last edited by a moderator: