fork download
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main() {
  6. double f = 2350
  7. cout.precision(2);
  8. cout << f << endl;
  9. cout.setf(ios::fixed,ios::floatfield); // floatfield set to fixed
  10. cout << f << endl;
  11.  
  12.  
  13. return 0;
  14. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:7: error: expected ‘,’ or ‘;’ before ‘cout’
stdout
Standard output is empty