#include "pch.h"
#include <iostream>
using namespace std;
int main()
{
int n, k;
k = 1;
cout << "Enter n: "; cin >> n;
for (int i = 1; i < n + 1; i++)
k = k * i;
cout << n << "! = " << k << endl;
return 0;
}
#include "pch.h"
#include <iostream>
using namespace std;
int main()
{
int n, k;
k = 1;
cout << "Enter n: "; cin >> n;
for (int i = 1; i < n + 1; i++)
k = k * i;
cout << n << "! = " << k << endl;
return 0;
}