/*	Circle Area program with a do-while loop */

#include <iostream.h>

using namespace std;	// October 5, 2001

int main()
{
	char Answer;    // Whether the user wants another circle
	cout << "Circle Area Calculator" << endl;
	do {
		// Perform calculation
		const double PI = 3.14159;
		double Radius;
		cout << "Enter the radius: ";
		cin >> Radius;
		cout << "Area is " << (PI * Radius * Radius) << endl;

		// Ask if another calculation is desired
		cout << "Do another circle (Y/N)?";
		cin >> Answer;
	} while (Answer == 'Y');
	cout << "Thanks for using the Circle Calculator" << endl;
	return(0);
}


