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