#include <iostream> #include <cmath> #include <iomanip> using namespace std; int main() { double x = 0.0; while (x < 1.0){ x = x + 0.1; cout << x << endl; cout << setprecision(21) << endl; } return 0; }
1 2 10 42 11
0.1 0.200000000000000011102 0.300000000000000044409 0.400000000000000022204 0.5 0.599999999999999977796 0.699999999999999955591 0.799999999999999933387 0.899999999999999911182 0.999999999999999888978 1.09999999999999986677