fork(1) download
  1. #include <stdio.h>
  2. #define PI 3.14159
  3. int main(void) {
  4. // your code goes here
  5. double r;
  6. scanf("%lf",&r);
  7. printf("circumference=%f\n",2*PI*r);
  8. printf("area=%f\n",PI*r*r);
  9.  
  10.  
  11. return 0;
  12. }
  13.  
Success #stdin #stdout 0s 5316KB
stdin
2
stdout
circumference=12.566360
area=12.566360