/************************************************************************ * * * Program: SquareRoot.cpp * * * * Author: Robb T. Koether * * * * Date: Sep 9, 2003 * * * * Purpose: This program will find the square root of a number * * * ************************************************************************/ // Header files #include #include using namespace std; /************************************************************************ * * * Function: main * * * * Purpose: To find the square root of a number * * * ************************************************************************/ int main() { // Get the number from the user cout << "Enter a number: "; float number; cin >> number; // Find the square root float root = sqrt(number); // Print the result cout << "The square root is " << root << endl; return 0; }