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 = 54000000;
  10. p = (a/b);
  11.  
  12. const char* format = "%4.6e\n";
  13.  
  14. printf(format, p);
  15. printf(format, 2739.469238);
  16. return 0;
  17. }
Success #stdin #stdout 0s 5332KB
stdin
Standard input is empty
stdout
2.962963e-07
2.739469e+03