fork download
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4.  
  5. void main(void)
  6. {
  7. int r = 3 ;
  8. const float pi = 3.1416 ;
  9. float area = pi * r * r ;
  10. printf( "半徑為%d", r );
  11. printf ("的圓面積為%f\n", area );
  12. system ("pause");
  13. }
  14.  
Success #stdin #stdout #stderr 0s 9432KB
stdin
Standard input is empty
stdout
半徑為3的圓面積為28.274399
stderr
sh: 1: pause: not found