Step 1. Read the initial approximation x

_{0}, and the number of iterations 'n'.

Step 2. Define f(x), the given function and f

^{'(}x), its derivative.

Step 3. Calculate f(x

_{0}) and f

^{'(}x

_{0)}.

Step 4. Calculate the next approximation x

_{1}by using NR formula.

Step 5. For the next iteration, replace x

_{0}by x

_{1}.

Step 6. Repeat steps 3, 4, and 5 for n iterations.

Step 7. The approximate value of the root is obtained in x

_{1}in the last iteration.

Step 8. Display the root and stop.