C++ Program to find square root of a number
#include<iostream>
#include<cmath>
using namespace std;
int main()
{
cout<<"Enter the Number:";
int num;
cin>>num;
cout<<"Square root of "<<num<<" is : "<<sqrt(num);
}
Input/Output:
Enter the Number:100
Square root of 100 is : 10
Post a Comment