fork download
  1. #include <iostream>
  2. #include <cmath>
  3. #include <iomanip>
  4. using namespace std;
  5.  
  6. int main() {
  7. cout << setprecision(2) << fixed;
  8. cout << showpos << 1.0 << " " << -2 << " " << sqrt(3.0) << endl;
  9. }
Success #stdin #stdout 0s 4432KB
stdin
Standard input is empty
stdout
+1.00 -2 +1.73