1 case is wrong

#include
using namespace std;
int main() {
int n1=0,n;cin>>n;
cout<<“1\n”<<“11\n”;
for(int i=3;i<=n;i++)
{
cout<<i-1;
for(int j=0;j<=n1;j++)
{
cout<<“0”;
}
cout<<i-1;
n1++;
cout<<endl;
}
return 0;
}

@parastandon4 Check what logic is needed to be followed:
0th row will have 1. After that from the 1st row, the first and the last element of each row will be the row number. There will be zeros in between.
If you are not able to get your mistake , please save your code on ide.codingblocks.com and share its link.

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.