fork(1) 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 = %.2f\n",2*pi*r);
  8. printf("area = %.2f",pi*r*r);
  9. return 0;
  10. }
  11.  
Success #stdin #stdout 0s 5320KB
stdin
4
stdout
circumference = 25.12
area = 50.24