Sir ,code compile succesfully but not showing output

#include
using namespace std;
int main() {
int n,val=1,i,p;
cin>>n;
for(i=1;i<=n;i++)
{
for(int j=1;j<=7;j++)
{
for(int s=1;s<=7-2*n;s++)
{
if(j<=i){
cout<<val;
val++;
}
else{
cout<<n-p;
p++;
}
}
}
cout<<endl;

}

return 0;

}

Hey @suraj1js18cs167 share your code using ide.codingblocks.com

If you don’t know how to share, you can also ask me that.

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.