码迷,mamicode.com
首页 > 其他好文 > 详细

输出9*9口诀

时间:2017-06-15 00:32:16      阅读:176      评论:0      收藏:0      [点我收藏+]

标签:div   stat   ++   string   code   pre   ati   rgs   class   

/**
 * 输出9*9口诀
 *
 */
public class Test4 {

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

}

 

输出9*9口诀

标签:div   stat   ++   string   code   pre   ati   rgs   class   

原文地址:http://www.cnblogs.com/lanseyitai1224/p/7011590.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!