Latest update on November 19, 2011 at 05:08 PM by Rik Sharma .

Among the computer programming languages, C is the most basic and also the most widely used language. C can be used not only for text documents but can also be used for various mathematical operations. Statistical as well as mathematical exercises ranging from basic addition, subtraction, cube root, square root and many polynomial powers can be created through this general purpose programming language. To get the square root of any number, the C script can be customized to code the logic which leads to this.

Intro

A simple C program allowing you to find the square root of a number.

#include #include int main(void) { double x = 4.0, result; result = sqrt(x); printf("The square root of %lf is %lfn", x, result); return 0; }

Notes

Tags:
Tomasz David
Tomasz David

Leave a Comment