fork download
  1. #include <iostream>
  2. #include <iomanip>
  3. using namespace std;
  4.  
  5. int main() {
  6. double pi = 3.14159265;
  7.  
  8. cout << fixed << setprecision(2);
  9. cout << pi << endl;
  10.  
  11. return 0;
  12. }
Success #stdin #stdout 0s 5320KB
stdin
Standard input is empty
stdout
3.14