fork download
  1. #include <iostream>
  2. #include <iomanip>
  3. using namespace std;
  4. int main() {
  5. double x = 0.0;
  6. while (x != 1.0) {
  7. x = x + 0.1;
  8. cout << setprecision(20) << x/1;
  9. return 0;
  10. }
  11.  
  12. }
Success #stdin #stdout 0.01s 5292KB
stdin
Standard input is empty
stdout
0.10000000000000000555