Pattern with zeroes

i make the code bit it is not passing at least a single testcases please help me in finding the error

here i am attaching my code
#include
using namespace std;
int main()
{
int n;
cin>>n;
for(int i=0;i<=n;i++)
{
for(int j=1;j<=i;j++)
{
if(i==1&&j==1)
{
cout<<1;
continue;
}
if(i==1||j==1||i==j)
cout<<i;
else
cout<<0;

	}
	cout<<endl;
}

return 0;

}

Modified Code

Your mistakes

  1. start i=1 not i=0
  2. all digits should be separated by a tab

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.