fork(1) download
  1. #include <stdio.h>
  2. int main(void) {
  3. // your code goes here
  4. const double pi =3.14;
  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