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