What is wrong in this code even on getting same output

#include
using namespace std;

int main()
{
int i, j, n;

cin>>n;

for(i=1; i<=n; i++)
{
    
    for(j=1; j<=i; j++)
    {
        cout<<j;
    }

    
    for(j=i*2; j<n*2; j++)
    {
        cout<<" ";
    }

    
    for(j=i; j>=1; j--)
    {
        cout<<j;
    }

    cout<<"\n";
}

return 0;

}

hey @shdanish1508
you have to separate every element by tab not by simple space, tab separation is written as cout<<"\t".

hey again it is showing error

@shdanish1508 there was a slight mistake in your code i have updated it a little .check this for help(https://ide.codingblocks.com/s/182246).

@shdanish1508 if you have any more queries let me know else mark this doubt as resolved.

i am not geeting any upgradation of code

(https://ide.codingblocks.com/s/182246) click on this link.