#include using namespace std; int main() { double term,x,etox; int nterm; const double tol=1.0E-16; etox=1.0; term=1.0; nterm=0; cin >> x; cout << endl; do { nterm+=1; term = (x/nterm) * term; etox+=term; } while (term > tol); cout << " eotx = " << etox << endl; cout << nterm << endl; return(0); }