fork download
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5. float a,b,c;
  6.  
  7. a = 3.141592;
  8. b = 2.0;
  9. c = a * b *b;
  10. printf("半径 %f の面積は %0.3f になります。\n",b,c);
  11. return(0);
  12. }
Success #stdin #stdout 0s 4268KB
stdin
Standard input is empty
stdout
半径 2.000000 の面積は 12.566 になります。