int main() {
int n,i,j;
scanf("%d",&n);
for(i=n;i>=1;i--)
{
for(j=1;j<=i-1;j++)
{
printf("%d",i);
}
for(j=i;j<=n;j++)
{
printf("%d",j);
}
printf("\n");
}
}
No comments:
Post a Comment