#include<stdio.h>
int main(
void)
{
void pyramid(
int n);
pyramid(5);
return 0;
}
void pyramid(
int n)
{
int i,j;
for(i=
1;i<=n;i++
){
for(j=
1;j<=n-i;j++
)
printf(" ");
for(j=
1;j<=i;j++
)
printf("%d",i);
putchar('\n');
}
}
转载于:https://www.cnblogs.com/liruijia199531/p/3357440.html
转载请注明原文地址: https://win8.8miu.com/read-1558750.html