#include <iostream>

using namespace std;

int main()
{
    {
        int i = 0;
        float epsilon_f = 1.0;
        while(1.0f + epsilon_f > 1.0f)
        {
            epsilon_f = epsilon_f / 2.0f;
            i++;
        }
        cout << "Machine epsilon for float type: " << epsilon_f << endl;
        cout << "The amount of iterations for float type: " << i << endl;
    }
    {
        int i = 0;
        float epsilon_f = 1.0;
        while(1.0 + epsilon_f > 1.0)
        {
            epsilon_f = epsilon_f / 2.0;
            i++;
        }
        cout << "Machine epsilon for double type: " << epsilon_f << endl;
        cout << "The amount of iterations for double type: " << i << endl;
    }

}
