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

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

/* This program prints out a table of square roots for
   the numbers 1 to 10. */ 

#include <iostream>
#include <cmath>

using namespace std;

int main()
{
	int number;
	
	cout.width(20);
	cout << "Number" << "Square Root\n\n";
	
	cout.setf(ios::fixed);
	cout.precision(2);
	for (number = 1 ; number <= 10 ; number = number + 1) {
		cout.width(20);
		cout << number << sqrt( (double) number) << "\n";
	}

	return 0;
}
