Manmohans problem sir i am not getting mistake due to that my pattern is also showing wrong values

#include
using namespace std;
int main()
{
int n;
cin>>n;
int value=1;
for(int i=0;i<n;i++)
{
for(int j=0;j<i;j++)
{
if(j==0 || j==i-1)
{
cout<<value;

		}
		else
		{
			cout<<0;
		}
		value++;
	}
	cout<<endl;
}

}

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.
Considering the sample input:
Sample Input
5
Sample Output
1
11
202
3003
40004

You can obeserve that 0th row will have 1. After that from the 1st row, the first and the last element of wach 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.