16 lines
273 B
C
16 lines
273 B
C
#include <stdio.h>
|
|
|
|
const double PI = 3.14159265;
|
|
|
|
int main(void) {
|
|
// initialize values
|
|
double radius;
|
|
scanf("%lf", &radius);
|
|
|
|
// print answer
|
|
printf("The perimeter is %.4lf, the area is %.4lf.\n", PI * radius * 2,
|
|
PI * radius * radius);
|
|
|
|
return 0;
|
|
}
|