for循环输出九九乘法表

public class lianxi2 {

    public static void main(String[] args) {
        // TODO 自动生成的方法存根
    for (int a = 1;a<=9;a++)    {
        
        for(int b=1;b<=a;b++){
            
        System.out.print(a+"*"+b+"="+a*b+"\t");
        
        }
        
        System.out.println();
        
    }

}
}

posted @ 2016-01-05 15:34  梦里梦到梦  阅读(314)  评论(0编辑  收藏  举报