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