#include
using namespace std;
int main() {
int n;
cin >> n;
if(n>0 & n<10){
int i,j,m;
for(i=1;i<=n;i++){
cout << "\n";
for(j=1;j<=i;j++){
cout << j << "\t";
}
for(j=n;j>=i;j--){
cout << " " << "\t";
}
for(j=n-1;j>=i;j--){
cout << " " << "\t";
}
m=i;
for(j=1;j<=i;j++,m--){
cout << m << "\t";
}
}
cout << "\n";
int k,v;
for(k=1;k<=n+1;k++){
cout << k<< "\t";
}
for(k=n;k>=1;k--){
cout << k<< "\t";
}
}
else{
cout << "0<n<10" ;
}
return 0;
}
sir this the code i wrote please correct my mistake, it is showing output but not accepting
