/************************************************************************ * * * Program: CircleArea.cpp * * * * Author: Robb T. Koether * * * * Date: Sep 9, 2003 * * * * Purpose: This program will read the radius of a circle and * * print the area * * * ************************************************************************/ // Header files #include #include using namespace std; /************************************************************************ * * * Function: main * * * * Purpose: To find the area of a circle * * * ************************************************************************/ int main() { // Get the radius from the user cout << "Enter the radius: "; float radius; cin >> radius; // Find the area float area = 3.14159 * radius * radius; // Print the result cout << "The area is " << area << endl; return 0; }