Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  epsilone
Language: C/C++
Code:
#include<iostream>
using namespace std;

int main()
{
     float e = 1;     // Ste epsilon = 1
     while ((1 + e) > 1)  // looping condition for epsilon
     {
          e = (e / 2);   
     }
     e = e * 2;  // final epsilon value after validation loop
     cout << "e is:    " << e <<endl;  //displaying value of epsilon obtained
     system("pause");
     return 0;
}
          
Comments: