Why my code is not giving me desired output

#include
using namespace std;
int main() {
int n;
cin>>n;
for(int i=1; i<=n; i++){
for(int j=1; j<=2n-1; j++){
if(j==1 and j==2
n-1){
cout<<1;
}
if(j<=i){
cout<<j;
}
}
cout<<endl;
}
for(int i=n; i>=1; i–){
for(int j=2n+3/2; j<=2n-1; j++){
if(j==2*n-1){
cout<<1;
}
if(j>=i){
cout<<j;
}
}
cout<<endl;
}
return 0;
}

hi @rathidevesh906_1dcc73a061c159bb, please send the link of code by saving in ide.codingblocks.com 9its not readable here)

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.