fork download
  1. #include <cmath>
  2. #include <iostream>
  3. using namespace std;
  4. int main()
  5. {
  6. const float EPS=0.01;
  7. float x=0;
  8. while (abs(x-1)>EPS){
  9. x=x+0.1;
  10. cout<<x<<endl;
  11. }
  12.  
  13. return 0;
  14. }
Success #stdin #stdout 0.01s 5288KB
stdin
45
stdout
0.1
0.2
0.3
0.4
0.5
0.6
0.7
0.8
0.9
1