Other Answers (2)Relevance
there is a c++ library function called sqrt(<input value>) that you can use for this.
std::cout << "enter a: ";
std::cin >> a;
std::cout << std::sqrt(double(a)) << std::endl;
c++ program to find square root?
code to compute a c++ program that will accept input from a user and find the square root