I have write code for left and right part but how to merge them?

for(int i=1;i<=n;i++){
for(int j=1;j<=i;j++){
cout<<j;
}
cout<<endl;
}}

@kailash_01 hey kailash share your whole code using ide.codingblocks.com