Загрузка данных


#include <iostream>
using namespace std;

int main()
{
    int M;
    cout << "Input value for M: ";
    cin >> M;

    for (int n = 1; n <= M; n++)
    {
        int P = 1;
        int a = 4 * n - 3;

        for (int k = 1; k <= a; k++)
        {
            P *= k;
        }

        cout << "P = " << P << endl;
    }

    return 0;
}