#include <stdio.h>
#define PI 3.1416
int
main (void)
{
double diam, area, circ, r;
printf ("Enter a value for the diameter: ");
scanf ("%lf", &diam);
r = diam / 2;
area = PI * r * r;
circ = 2 * PI * r;
printf ("\nA circle with a diameter of %3.1lf cm, ", diam);
printf ("has an area of %5.3lf cm2\n", area);
printf ("and a circumference of %4.2lf cm.\n", circ);
return (0);
}