fork download
  1. #include <stdio.h>
  2. #include <math.h>
  3. int main () {
  4.  
  5. double d;
  6. scanf ("%lf", &d);
  7. double V = 2*d*3.14 ;
  8. double S = d*d*3.14 ;
  9. printf ("%.2f %.2f",V , S) ;
  10.  
  11.  
  12. }
Success #stdin #stdout 0s 544KB
stdin
10
stdout
62.80 314.00