fork download
  1. #include <stdio.h>
  2. #define pi 3.14
  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",pi*r*r);
  9. return 0;
  10. }
  11.  
Success #stdin #stdout 0.01s 5308KB
stdin
4
stdout
circumference = 25.120000
area = 50.240000