class DuoCengTa
{
public static void main(String[] args)
{
ta(9);
}
public static void ta(int num)
{
int count=1;
while (num!=0)
{
for (int x=0;x<3 ;x++ )
{
for (int y=0;y<num-x+1;y++ )
{
System.out.print(" ");
}
for (int z=0;z<count+x-1 ;z++ )
{
System.out.print("! ");
}
System.out.println();
}
count++;
num--;
}
}
}
|
|