while(fabs(term) > TRUNCATION)
{
term *= -x/((double) n);
sum += term;
n++;
} // end while loop
cout << "x = " << x << " exp = " << exp(-x) <<"series = "
<< sum << " number of terms =" << n << endl;
} // end of for() loop
cout << endl; // a final line shift on output
} /* End: function main() */