Number Pattern in C

I want a code to print the following number pattern (Pyramid)

   1
 121

12321
1234321

I request to provide me the code as early as possible.

Find the list of such programs here
https://www.includehelp.com/c-programs/c-program-to-print-stars-in-series-pyramid-using-looping.aspx

Here is the code for this patter:

#include <stdio.h>
int main()
{
    int i,j;
    int space =3;
    for(i=1;i<=4;i++)
    {
        //loop to print spaces before the line
        for(j=0;j<space;j++)
        {
            printf(" ");
        }
        for(j=1;j<=i;j++)
        {
            printf("%d",j);
        }
        for(j=i-1;j>=1;j--)
        {
            printf("%d",j);
        }
        printf("\n");
        space--;
    }
}