Square-root Calculate the square root without sqrt or library in c ++ Basically the algorithm follows this reasoning. Example: square root of 9 step 1: 9 - 1 = 8 step 2: 8 - 3 = 5 step 3: 5 - 5 = 0 Conclusion: Square root = 3