fork download
  1. #include <stdio.h>
  2.  
  3. int main(void)
  4. {
  5. int d = 2;
  6. double pi = 3.14;
  7.  
  8.  
  9. printf("直径が%dセンチの円の\n", d);
  10. printf("円周は%fセンチです。\n", d*pi);
  11.  
  12.  
  13. return 0;
  14. }
Success #stdin #stdout 0s 5288KB
stdin
Standard input is empty
stdout
直径が2センチの円の
円周は6.280000センチです。