I am currently trying to figure out what went wrong, my best guess is my while loop is wrong because it returns the answer x through only 1 iteration(1 loop) that is it goes through the while loop without even checking if difference>accuracy(0.0001) can anyone help out? thank you.Code:#include "stdio.h"float squareRoot(float number, float accuracy); int main() { float a; printf("\nsquare root test 1: enter a number\n"); scanf("%f",&a); printf("root(%.2f) = %.4f\n", a, squareRoot(a, 0.00001)); getchar(); return 0; } float squareRoot(float num, float accuracy) { float guess = 1; float difference = num - guess * guess; float x; while(difference > accuracy) { x = num/guess; guess = (guess + x)/2; difference = num - guess * guess; } return x; }