Help me in solving BICBPAT1 problem

My issue

not able to get answer

My code

#include <stdio.h>
int main()
{
    int i,j,n;
    printf("enter thevalue ofn");
    scanf("%d",&n);
    
    for()
}


Problem Link: Printing Pattern using loops Practice Coding Problem