class Xunhuan
{
public static void main (String[] args)
{
for(int i = 0 ;i <= 5;i++)
{
for(int y = 0 ;y <=5-i;y++)
{
System.out.print("*");
}
System.out.println();
}
System.out.println("-------------------------------------------------------");
int z=5;
for(int i = 0 ;i <= 5;i++)
{
for(int y = 0 ;y <=5-i;y++)
{
System.out.print("*");
}
System.out.println();
z--;
}
System.out.println("-------------------------------------------------------");
for(int i = 0 ;i <= 5;i++)
{
for(int y = 1 ;y <=i;y++)
{
//int z=0;
//z++;
System.out.print(y);
}
System.out.println();
}
System.out.println("-------------------------------------------------------");
for(int i = 1 ;i <= 9;i++)
{
for(int y = 1 ;y <=i;y++)
{
System.out.print(y+"*"+i+"="+i*y+"\t");
}
System.out.println();
}
}
} |
|