F How to square root of a number using sqrt() function in CPP | CodeTheta

How to square root of a number using sqrt() function in CPP

August 26, 2019

Code :
#include<iostream>
#include<conio.h>
#include<math.h>
using namespace std;
int main()
{
    double number, result;
    cout<<"Enter a number: ";
    cin>>number;
   
    result = sqrt(number);
    cout<<"Result is :"<<result;
   
}


Output :
Enter a number: 5.69
Result is : 2.38537

IDE Used To Test This Code : DEV CPP.

Try this code in your computer for better understanding. Enjoy the code. If you have any Question you can contact us or mail us.We will reply you as soon as possible.

Post a Comment

PRODUCTS

LISTS OF PRODUCTS

SERVICES

SKILLS
SOFTWARE DEVELOPMENT
WEBSITE DEVELOPMENT
WEB HOSTING
BULK SMS SERVICE
SEO SERVICE
ANDROID APPS
QR CODE / BARCODE
HARDWARE SERVICE
OUR WORK AREA