Program for Square Root in C++

Square root in C++ can be calculated using sqrt() function defined in math.h header file. This function takes a number as an argument and returns the square root of that number.

Below I have shared a program to find square root in C++. If you have any problem then you can freely ask it by commenting below.

Program for Square Root in C++

 

Output

Enter any number:9

Square root of 9 is 3

4 thoughts on “Program for Square Root in C++

  1. Sachin Saini

    Thanks to all of you…
    One Of The Best C teaching website for Beginners !!

    Reply

Leave a Reply

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