/* 
 * Author:     Wil Schrader
 * Date:       9/1/2009
 * Version:    1.0
 * Class:      CIT 131 / Fall 2009 
 *
 * Assignment: 2) Area/Circumference
 *                Ask the user to input the radius of a circle.
 *                Print the area and circumference of the circle.
 */
#include <stdio.h>

/* Main Function */
int main( void ) {

   int r;

   /* Ask the user for the radius of a circle */
   printf( "Enter the radius of a circle: " );
   scanf( "%d", &r );

   /* Print the area (a = pi * r^2) and circumference (c = 2 * pi * r) */
   printf( "The area A of a circle with radius %d = %f\n", r, (3.14159 * r * r) );
   printf( "The circumference C of a circle with radius %d = %f\n", r, (2 * 3.14159 * r) );

   return 0; /* Program ended successfully */

} /* End Main Function */
