// Online C++ compiler to run C++ program online
#include <iostream>
using namespace std;
double SqrtNumber (double num){
double temp = 0;
double sqrt=num/2;
while(sqrt!=temp)
{
temp=sqrt;
sqrt=(num/sqrt+sqrt)/2;
}
}
int main() {
cout <<SqrtNumber(4);
return 0;
}