I am trying to find the roots using Bisection method. While the program works fine in program without using do loop, it gives wrong result in the program containing do loop like, using a=3 and b=5 should have asked for another values of a and b like in the first program. I haven't been able to implement same algorithm in the program that uses do loop. Thanks The program are here: https://gist.github.com/roshan2004/7788d611233b69cb61e372dcc745f7a2