class Demo
{
public static viod he(int a,int b)
{
System.out.println(a + b);
}
public static void pan(int c,int d)
{
System.out.println(c == d ? c : d);
}
public static void jiu()
{
for(int e = 1; e <= 9; e++)
{
for(int f = 1; f <= e; f++)
{
System.out.print(f + "*" + e + "=" + f * e + "\t");
}
System.out.println();
}
}
}
class Test1
{
public static void main(String[] args)
{
Demo x = new Demo();
x.he (9,9);
x.pan (9,9);
x.jiu ();
}
}
|
|