April 2018

One of various computer programming languages, **C** is the most basic and widely used language, likely because it gives maximum efficiency and control to programmers. The C language can be used for mathematical operations, ranging from additions and subtractions to square roots and cube roots, along with other polynomial powers that can be created through C programming.

To**find the square root of a number**, you can customize the C script to code the logic by using the sqrt function. This tutorial will show you how.

## Finding a Square Root in C Program

Here is sample program:

Image: © quka - Shutterstock.com
## Related

To

#include <math.h>

#include <stdio.h>

int main(void)

{

double x = 4.0, result;

result = sqrt(x);

printf("The square root of %lf is %lfn", x, result);

return 0;

}

Image: © quka - Shutterstock.com

- How to find square root in c
- Square root in c
- Sqrt in c
- C Language - finding the square root of a number » How-To - C Language
- Calculate the square root of a number with Google. » How-To - Google
- Superscript of squared in Turbo C? » Forum - Programming
- C++ program computing sum of squares of two » Forum - Programming
- Visual c++ express » Download - C/C++