#include "stdio.h"
int main()
{
int n,i,j,h,m=1,c;
printf("请输入n");
scanf("%d",&n);
for(i=1;i
{
c=0;
for(j=1;j
printf(" ");
for(h=1;h
{
if(h
c++;
else
c--;
printf("%2d",c);
}
printf("\n");
m=m+2;
}
return 0;
}
你可以把n改为9
#include "stdio.h"
int main()
{
int n,i,j,h,m=1,c;
printf("请输入n");
scanf("%d",&n);
for(i=1;i
{
c=0;
for(j=1;j
printf(" ");
for(h=1;h
{
if(h
c++;
else
c--;
printf("%2d",c);
}
printf("\n");
m=m+2;
}
return 0;
}
你可以把n改为9