If that doesn't work, try I = J + 1, just in case the problem statement is worded incorrectly - which it is. Well, I guess I assumed it was the next GREATER integer.
There is no way 10 can be described as the "[next] consecutive integer" after 6. That cannot be the answer.
Try again. How did you get that? Did you use John's first method until you found something? That first clue, now no longer available for view, missed the information suggested in my first sentence. That's why it changed.
If that doesn't work, try I = J + 1, just in case the problem statement is worded incorrectly - which it is. Well, I guess I assumed it was the next GREATER integer.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.