I am trying to use the newton raphson method for finding square roots. Considering the function f(x)= c-x^2 if we solve for f(x) =0 then x = square root of c which is what we want to find
That isn't the Newton-Raphson formula for finding roots.
Step 1: take a guess.
xx1 = ─
2
Step 2: improve the guess.
1 xxn+1 = ──( xn + ─── )
2 xn
Step 3: stop when the difference between the previous guess and this guess is less than some small number (usually called "epsilon"). Pay attention to that second term there, the numerator is the original input to the function!