chengfa

public class ddddd{

    public static void main(String[] args) {


        int m = 9;

        for (int i = 1; i <= m; i++) {
            for (int j = 1; j <= i; j++)
            {
                int a = j;
                int b = i;
                int c = a * b;
                System.out.print(a + "*" + b + "=" + c);

                System.out.print(" ");
            }

            System.out.println();
        }
    }

} 

 

posted @ 2015-12-05 08:44  刘某人丶  阅读(230)  评论(0编辑  收藏  举报