java50题----16九九乘法表

来源:互联网 发布:python 多维高斯分布 编辑:程序博客网 时间:2024/06/04 18:04
/*实现9*9乘法表。*/class MainClass {public static void main(String[] args) throws Exception{System.out.println("9*9乘法表:");for(int i = 1; i <= 9; i++){for (int j = 1; j <= 9; j++){if(j >= i)System.out.print(i+"*"+j+"="+i*j+"\t");}System.out.println("");}}}/**/

0 0