C++ Program to Find Square Root of a Number

Find Square Root of a Number

Here you will get an example code of C++ Program to Find Square Root of a Number. To calculate the square root in c++, we can use the sqrt() function defined in math.h header file.

Example of C++ Program to Find Square Root of a Number

Output

Enter a number : 16

Square root of 16 is 4

 

 

 

Check out our other C++ programming Examples

 

 

 

 

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top