// direct approach to calculate 5! (factorial of 5) #include #include using namespace std; int x; int main() { x = 1 * 2 * 3 * 4 * 5; cout << x << endl; }