/* Program 2.3.1 from C++ Programming Lecture notes  */

/* Author: Rob Miller and William Knottenbelt
   Program last changed: 30th September 2001    */

/* This program prints out the square root of a number. */ 

#include <iostream>
#include <cmath>

using namespace std;

int main() 
{
	float number;

	cout << "Type in a real number.\n";
	cin >> number;
	cout.setf(ios::fixed);    //	LINE 10
	cout.precision(2);
	cout << "The square root of " << number << " is approximately "; 	
	cout << sqrt(number) << ".\n";

return 0;
}
