Check out example codes for "root in C". It will help you in understanding the concepts better.

Code Example 1

#include <stdio.h>
#include <math.h>

int main()
{
    double num = 6, squareRoot;

    squareRoot =  sqrt(num);
    printf("Square root of %lf =  %lf", num, squareRoot);

    return 0;
}

Learn ReactJs, React Native from akashmittal.com