I have to write a Newton's Method program for a class I am in and I am running into some issues here. The program has to iterate through until x1 and x0 differ by 0.0001 or less and display x0 and x1 for each iteration. Also the assignment asks me to "use the conditional operator to compare the value of x0 to x1 so that the difference is a positive number". When I try and run this program all it does is give me an output of inf or when I switch the order of x1 and x0 in the first line of the do statement it just gives me infinite alternating outputs. Any help would be greatly appreciated.