Why i am getting wrong answer in this patter zero progream of programming fundamentals

/*
1
22
303
4004
50005
*/
#include
using namespace std;
int main()
{
int n;
cin>>n;
int i,j;
for(i=1;i<=n;i++)
{
for(j=1;j<=i;j++)
{

	    if (j==1 || j==i )
	 	{
 		cout<<i<<"		";
		 }
		else
		{cout<<0;
			  } 
	     
		 
	}
	cout<<endl;
}



return 0;

}

Hey @345avamanverma, the problem is that you are adding too much space after i and no space after 0.
Here is the your code with the problem rectified: https://ide.codingblocks.com/s/171298
Let me know if you still face some issue.