9*9乘法表

//6. 完成一个9*9乘法表
public class HomeWork6 {
    public static void main(String[] args) {
        int row = 1;
        int result;
        while(row < 10){
            int col = 1;
            while (col <= row){
                result = row * col;
                System.out.print(col + "*" + row + "=" + result + "\t");
                col++;
            }
            System.out.println();
            row++;
        }

    }
}
posted @ 2020-04-18 14:07  jacob_code  阅读(22)  评论(0)    收藏  举报