#include #include #include using namespace std; int main() { for(double h = 1.; h > 1.e-24; h /= 10.) { double x = 1.; double d = (x+h)*(x+h) - x*x; d /= h; cout << "Your result is " << h << " " << setprecision(20) << d << endl; } }