fork download
  1. #include <stdio.h>
  2. #define PI 3.14
  3. int main(void) {
  4. double a,b,c;
  5. scanf("%lf",&a);//半径//
  6. b = a*a*PI;
  7. c = a*2*PI;
  8. printf("面積%lf,円周%lf",b,c);
  9.  
  10. return 0;
  11. }
Success #stdin #stdout 0.01s 5304KB
stdin
3
stdout
面積28.260000,円周18.840000