// FILE: SqreRoot.cpp // PERFORMS THREE SQUARE ROOT COMPUTATIONS #include // i/o functions #include // sqrt function int main () { // Local data ... double first; // input: one of two data values double second; // input: second of two data values double answer; // output: a square root value // Get first number and display its square root. cout << "Enter the first number: "; cin >> first; answer = sqrt (first); cout << "The square root of the first number is " << answer << endl; // Get second number and display its square root. cout << "Enter the second number: "; cin >> second; answer = sqrt (second); cout << "The square root of the second number is " << answer << endl; // Display the square root of the sum of first and second. answer = sqrt (first + second); cout << "The square root of the sum of both numbers is " << answer << endl; return 0; }