java 打印99乘法表

class jiujiu 
{
    //打印99乘法表
    public static void main(String[] args) 
    {
        for(int x=1;x<=9;x++)
        {
            for(int y=1;y<=x;y++)
            {
                System.out.print(y+"x"+x+"="+x*y+"\t");
            }
            System.out.println();
        }
    }
}

 

posted @ 2016-06-02 16:10  月夜迷思  阅读(278)  评论(0)    收藏  举报