class JiuJiu1
{
public static void main(String[] args)
{
jiuJiu1();
jiuJiu2();
// jiuJiu(23);
}
public static void jiuJiu(int num)
{
for(int a=1;a<=num;a++)
{
for(int b=1;b<=a;b++)
{
System.out.print(a+"*"+b+"="+a*b+"\t");
}
System.out.println();
}
// System.out.println("Hello World!");
}
public static void jiuJiu1()
{
for(int a=1;a<=10;a++)
{
for(int b=1;b<=a;b++)
{
System.out.print(a+"*"+b+"="+a*b+"\t");
}
System.out.println();
}
// System.out.println("Hello World!");
}
public static void jiuJiu2()
{
for(int a=9;a>=1;a--)
{
for(int b=1;b<=a;b++)
{
System.out.print(a+"*"+b+"="+a*b+"\t");
}
System.out.println();
}
}
}
|
|