#include<stdio.h>
#include<conio.h>
main( )
{
char i,j,k,s[]=" A ";
k=getchar();
for(i='A';i<=k;i++)
for(puts(s),j=1;s[j];j++)
if(s[j]!=' ')++s[j];
else if(s[j+1]=='A')s[j]='A';
else if(s[j-1]=='B')s[j]='A';
getch();
}
不错..只可惜还不够动态

[glow=255,violet,2]闭关修炼ing...[/glow] [FLASH=360,180]http://www./chinaren.swf[/FLASH]