#include #include #include using namespace std; const double N {15}; int main() { long intCalc {0}; double approximation{0}; intCalc = 15l * 14 * 13 * 12 * 11 * 10 * 9 * 8 * 7 * 6 * 5 * 4 * 3 * 2; approximation = exp(-N) * pow(N,N) * sqrt(2 * N * M_PI); //cout << fixed; cout << setfill('*'); cout << noshowpoint; cout << setprecision(0); int spacing {5}; cout << N << setw(12) << "! = " << setw(spacing) << intCalc << endl; cout << N << setw(12) << "! is about " << setw(spacing) << approximation << defaultfloat << endl; /* cout << endl << endl; cout << setw(1) << "hi" << endl; cout << setw(2) << "hi" << endl; cout << setw(3) << "hi" << endl; cout << setw(4) << "hi" << endl; */ return 0; }