/* Filename: root.cpp Author: Br. David Carlson Date: January 5, 2000 Modified: June 26, 2000 This program prompts the user to enter a positive integer and then prints its square root. */ #include #include // Needed in order to use sqrt function. using namespace std; int main(void) { int Num; cout << "Enter a positive integer: "; cin >> Num; cout << endl << "This number has square root: " << sqrt(Num) << endl << endl; return 0; }