/* Filename: root.cpp Author: Br. David Carlson Br. Isidore Minerd Date: January 5, 2000 Modified: June 26, 2000; August 17, 2001; July 16, 2009 This program prompts the user to enter a positive real number and then prints its square root. Tested with: Microsoft Visual Studio 2005 Microsoft Visual Studio 2008 g++ under Linux */ #include #include // Needed in order to use sqrt function. using namespace std; int main(void) { double Num; cout << "Enter a positive real number: "; cin >> Num; cout << endl << "This number has square root: " << sqrt(Num) << endl << endl; return 0; }