8. homework 31.10 - Syerikgul/Homeworks GitHub Wiki

#include #include <math.h> using namespace std;

int fuck(int n)
{
    int i, x;
    x = 1;
    for (i = 1; i <= n; i++)
    {
        x *= i;
    };

    return x;
}

int main()
{
    int k, j, c;
    cin >> k;
    cout << "1" << "\n";
    for (j = 1; j <= k; j++)
    {
        for (c = 0; c <= j; c++)
        {
            cout << (fuck(j) / (fuck(c) * fuck(j - c))) << " ";
        };
        cout << "\n";
    };
    return 0;
}
⚠️ **GitHub.com Fallback** ⚠️