fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. double x=0.0;
  6. while (x<1.0){
  7. x=x+0.1;
  8. cout<<x<<endl;
  9. }
  10. return 0;
  11. }
Success #stdin #stdout 0s 5284KB
stdin
Standard input is empty
stdout
0.1
0.2
0.3
0.4
0.5
0.6
0.7
0.8
0.9
1
1.1