In this exercise we examine code for finding the roots of a nonlinear equation and in the process introduce the Newton-Raphson method and loop control structures for, while, and do...while. We also show how to quit a program with an exit code.