fork download
  1. #include <cstdio>
  2. using namespace std;
  3.  
  4. int main() {
  5. double i=0.035,j=0.045;
  6. printf("%lf %lf\n",i,j);
  7. printf("%.2lf %.2lf",i,j);
  8. return 0;
  9. }
Success #stdin #stdout 0s 4456KB
stdin
Standard input is empty
stdout
0.035000 0.045000
0.04 0.04