Sunday, August 23, 2015

Program to find the Square Root of a number

 Q. 84. Program in C++ to find the Square Root of a number.




Copy Code:

#include<iostream>
#include<cmath>
using namespace std;
int main()
{
   int a ;
   cout << "Enter a number : ";
   cin >> a;
   cout << "Square Root of " << a << " is " << sqrt(a);
   return(0);
}


No comments:

Post a Comment