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