P5725```
#include<bits/stdc++.h>
using namespace std;
int main(){
int n;cin>>n;
int x=1,y=1,k;
k=nn;
while(x<=k){
if(x<10){
cout<<"0"<<x;
x++;y++;
}
else {
cout<<x;
x++;y++;
}
if(y>n){
cout<<endl;
y=1;
}
}
cout<<endl;
int t=n,w=n,i=1,e=1;
while(i!=n(n+1)/2){
int z=0;
while(w-1>0){
w--;
cout<<" ";
}
t--;
w=t;
while(z!=e){
if(i<10){
cout<<"0"<<i;
i++;
}
else{
cout<<i;
i++;
}
z++;
}
cout<<endl;
e++;
if(e-1==n)break;
}
return 0;
}