How to find a square root of number in C program - Tech students
 
 

How to find a square root of number in C program

Square root

Square-root
Square root

Square root, In arithmetic, a square root of a variety of a is various y such that y2 = a; in different phrases, quite a number y whose square root the result of multiplying the quantity by using itself, or y. y for example, four and −four are square root of 16 because 42 = (−4)2 = 16. Each nonnegative real number a has a completely unique nonnegative rectangular root, called the main square root, which is denoted through √a, in which √ is referred to as the novel signal or radix.

For example, the principal square root of nine is three, which is denoted with the aid of √9 = 3, because 32 = 3 · 3 = 9 and three is nonnegative. The time period (or range) whose rectangular root is being considered is called the radicand. The radicand is the range or expression under the radical sign, in this situation 9.

Every superb wide variety a has  rectangular roots: √a, that's tremendous, and −√a, that is poor. Together, those  roots are denoted as ±√a (see ± shorthand). Even though the essential rectangular root of a high-quality quantity is most effective one among its two rectangular roots, the designation square root is regularly used to consult the fundamental rectangular root. For wonderful a, the essential rectangular root also can be written in exponent notation, as a1/2.

Square roots of poor numbers can be mentioned in the framework of complex numbers. More commonly, rectangular roots can be taken into consideration in any context wherein a perception of squaring of some mathematical objects is defined such as algebra of matrices, endomorphism rings, etc.

Let's begin our code :  

#include<stdio.h>
#include<math.h>
int main()
   int num; scanf("%d",#);
   printf("Square root: %f",sqrt(num)); 
   return 0; 

Output: 25 Square root: 5

Thanks for visit I hope this programe you learn here square root and comment below want to more programs Share this Article to your friends.
How to find a square root of number in C program How to find a square root of number in C program Reviewed by Tech students on February 11, 2019 Rating: 5

No comments:

 
Powered by Blogger.