#include<stdio.h>
int main()
{
int n,m,i,j;
scanf("%d%d",&n,&m);
for(i=0;i<n;i++)
{for(j=0;j<m;j++)
{if('A'+j-i<'A')
printf("%c",'A'-j+i);
else
printf("%c",'A'+j-i);
}printf("\n");
}
return 0;
}
标签:elseprintf,return,q4,int,scanf,iprintf From: https://blog.51cto.com/u_15758636/5890229