Originally Posted by
Norm
Is there an if statement that controls that printing? Is the condition in the if statement ever true to allow printing?
Add a print statement just before the if statement that prints the values in the if statement so you can see what the computer sees when it executes the if statement.
Please edit your post and wrap your code with code tags:
[code]
**YOUR CODE GOES HERE**
[/code]
to get highlighting and preserve formatting.
Hi,
Thank you. Introduced a new variable maxInt and took printing out of if statement. It works well.