Looping structures are key design structure used in programming
languages.The ability to repeat code is a powerful tool and can save
many lines of code.An infinite loop will use 100% of the CPU.Suggest two actions that you can take prevent problem
1. You can add a check procedure before the loop is executed, which will examine and determine if the loop is executing on an acceptable range.
as in this pseudo code.
2. Set up your development environment in a way that it will check for endless loops and break the execution
Let me know if you need more help
Content will be erased after question is completed.
Enter the email address associated with your account, and we will email you a link to reset your password.
Forgot your password?