fork download
  1. /* 円周と面積 */
  2. // kuroki ryuma
  3. #include <stdio.h>
  4. #define PI 3.14159
  5. int main(void){
  6. int r;
  7. float l,s;
  8. r=10;
  9. l=2*PI*r;
  10. s=PI*r*r;
  11. printf("円周=%f\t面積=%f\n",l,s);
  12. return 0;
  13. }
Success #stdin #stdout 0s 4392KB
stdin
Standard input is empty
stdout
円周=62.831799	面積=314.158997