#include <stdio.h>

int main() {
    int a,b,c,d,k=0;
    int x[5001];
    scanf("%d %d",&a,&b);
    x[0]=b;
    for(int i=1;i<a;i++)
    {
        for(int j=0;j<i;j++)
        {
            if()
        }
    }
    }
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: