/* Name: Andrew Charles Breiner * Homework 1 * Section 2.3, Page 54, Program 3 * Asks user to input radius and computes area of circle. */ #include /* printf, scanf definitions */ #define PI 3.14159 /* constant for PI */ int main(void) { double area, radius; /* declares as type double */ /* Ask user for the radius */ printf("Please enter the value of the radius: "); scanf("%lf", &radius); /* Compute the area of the circle */ area = PI * radius * radius; /* Output the area of the circle */ printf("The area of your circle is %f inches.\n", area); return 0; } //main