使用递归写九九乘法表

package work001;

public class Work005 {

    public static void main(String[] args) {
        jiujiu(9);
    }
    public static void jiujiu(int a) {
        if(a==1) {
            System.out.println("1*1=1");
        }else {
            jiujiu(a-1);
                for(int j=1;j<=a;j++ ) {
                    System.out.print(a+"*"+j+"="+a*j);
                    System.out.print(" ");
                }
                System.out.println();
        }
    }
}