fork download
  1. #include <iostream>
  2. #include <iomanip>
  3. using namespace std;
  4.  
  5. int main() {
  6. double x = 0.0;
  7.  
  8. while (x <= 1.0) {
  9. x += 0.1;
  10. cout << fixed << setprecision(10) << x << endl;
  11. }
  12.  
  13. return 0;
  14. }
  15.  
Success #stdin #stdout 0s 5316KB
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