fork download
  1. #include <iostream>
  2. #include <iomanip>
  3.  
  4. using namespace std;
  5.  
  6. int main() {
  7. double x = 0.0;
  8.  
  9. while (x <= 1.0) {
  10. x += 0.1;
  11. cout << fixed << setprecision(10) << x << endl;
  12. }
  13.  
  14. return 0;
  15. }
  16.  
Success #stdin #stdout 0s 5320KB
stdin
Standard input is empty
stdout
0.1000000000
0.2000000000
0.3000000000
0.4000000000
0.5000000000
0.6000000000
0.7000000000
0.8000000000
0.9000000000
1.0000000000
1.1000000000