fork download
  1. #include <stdio.h>
  2. #include <math.h>
  3. #include <stdlib.h>
  4.  
  5. int main(){
  6.  
  7. double p;
  8. double a = 16;
  9. double b = 54;
  10. p = a / b;
  11.  
  12. printf("%.10f\n", p);
  13. printf("%.10g\n", p);
  14. printf("%.10e\n", p);
  15. printf("%10f\n", p);
  16. printf("%10g\n", p);
  17. printf("%10e\n", p);
  18. return 0;
  19. }
Success #stdin #stdout 0s 5292KB
stdin
Standard input is empty
stdout
0.2962962963
0.2962962963
2.9629629630e-01
  0.296296
  0.296296
2.962963e-01