java --- 九九乘法表

package studying;
public class MultiplicationTable {

    public static void main(String[] args) {
        //this program is 9*9 multiplication table        
        for(int j = 1; j < 10; j++) {
            for(int i = 1; i <= j; i++) {
                System.out.print(i + "*" + j + "=" + (i*j) + "\t");
            }
            System.out.println();
        }
    }
}

结果展示:

 

posted @ 2017-12-19 20:14  superdrew  阅读(230)  评论(0编辑  收藏  举报